总是忘记Mysql新装后的建库utf8脚本,记录一下,备忘

vi gogs.sql  
DROP DATABASE IF EXISTS gogs;  
CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8 COLLATE utf8_general_ci;

mysql -u root -pyour_password < gogs.sql  
comments powered by Disqus