时间:2021-07-01 10:21:17 帮助过:2人阅读
修改 /etc/mysql/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
修改后 /etc/init.d/mysql stop
/etc/init.d/mysql statr
重启mysql
linux下MySql5.5中文乱码
标签: