查看MySQL码表:
show variables like '%character%';
设置mysql编码:
vi /etc/my.cnf
具体内容如下:
[mysqld]
character-set-server=utf8
collation-server=utf8_general_ci
sql_mode='NO_ENGINE_SUBSTITUTION'
[mysql]
default-character-set=utf8
重启mysql服务
service mysql restart
标签:编码,set,utf8,mysql,character,server,linux From: https://blog.51cto.com/u_12277263/5809077