标签:utf8 ted var etc tar centos ror restart error
CENTOS设置MYSQL字符集
vim etc/my.cnf
修改成如下:
[client]
port=3306
socket=/var/lib/mysql/mysql.sock
default-character-set=utf8
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
character-set-server=utf8
[mysql]
no-auto-rehash
default-character-set=utf8
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
重启mysql服务:service mysqld restart
标签:utf8 ted var etc tar centos ror restart error
原文地址:http://www.cnblogs.com/hnxxcxg/p/7506584.html