版本大于5.5
[mysqld]下添加的应该为:
character-set-server=utf8
collation-server=utf8_general_ci
版本小于5.5
[client]下添加:
default-character-set=utf8
[mysqld]下添加:
default-character-set=utf8
[mysqld]下添加的应该为:
character-set-server=utf8
collation-server=utf8_general_ci
[client]下添加:
default-character-set=utf8
[mysqld]下添加:
default-character-set=utf8