在 /etc/my.cnf添加下列字段可将characterset永久变为utf8
[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
用status查看
在 /etc/my.cnf添加下列字段可将characterset永久变为utf8
[client]
default-character-set=utf8character-set-server = utf8
用status查看