centos终端中mysql中文显示乱码的处理

http://*.com/questions/3513773/change-mysql-default-character-set-to-utf-8-in-my-cnf
https://dev.mysql.com/doc/refman/5.0/en/charset-configuration.html 编辑 /etc/my.conf文件,增加以下内容
[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
 
上一篇:VMware中 CentOS7挂载windows共享文件夹


下一篇:Mac 下配置 SSH 免密码安全登录