服务器(server),数据库(database),数据表(table)和连接(connection) 字符集.
修改my.cnf
# vim /etc/my.cnf [client] default-character-set=utf8 [mysqld] character-set-server=utf8 [mysql] default-character-set=utf8