[client]
default-character-set=utf8
[mysqld]
default-storage-engine=INNODB
character-set-server=utf8
collation-server=utf8_general_ci
[mysql]
default-character-set = utf8
/etc/init.d/mysql restart 重新启动mysql
数据库中status查看各项即变为utf8
[client]
default-character-set=utf8
[mysqld]
default-storage-engine=INNODB
character-set-server=utf8
collation-server=utf8_general_ci
[mysql]
default-character-set = utf8
/etc/init.d/mysql restart 重新启动mysql
数据库中status查看各项即变为utf8