直接指导定数据库的创建编码
GBK: CREATE DATABASE `test2` DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;
UTF8: CREATE DATABASE `test2` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
直接指导定数据库的创建编码
GBK: CREATE DATABASE `test2` DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;
UTF8: CREATE DATABASE `test2` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
转载于:https://www.cnblogs.com/jthb/archive/2013/05/30/3108498.html