Server characterset: latin1
Db characterset: latin1
Client characterset: utf8
Conn. characterset: utf8
下面我们设置mysql 字符集 charset
vi /etc/my.cnf
在[mysqld]下面加入一行
character_set_server = utf8
在[mysql]下面加入一行
default-character-set = utf8
server mysqld restart
mysql -uroot -p
mysql>status;
Server characterset: utf8
Db characterset: utf8
Client characterset: utf8
Conn. characterset: utf8