To set the default to UTF-8, you want to add the following to my.cnf

[client]
default-character-set=utf8

[mysql]
default-character-set=utf8


[mysqld]
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
character-set-server = utf8
posted on 2013-11-11 14:42  丢た壳の蜗牛  阅读(197)  评论(0编辑  收藏  举报