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

http://stackoverflow.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

 

 
posted @ 2015-06-05 09:17  tommy.yu  阅读(302)  评论(0编辑  收藏  举报