修改配置文件将字符集设为utf8
/etc/my.cnf
[client]
default-character-set=utf8
[mysqld]
character-set-server=utf8
collation-server=utf8_general_ci
default-character-set=utf8
[mysql]
default-character-set=utf8
保存运行/etc/init.d/mysql restart 重启mysql即可
阅读(1145) | 评论(0) | 转发(0) |