mysql 字符集

mysql -u root -p 输入密码进入mysql

show variables like 'character%'; --显示字符集,像这样

q退出mysql, 更改mysql配置文件

vi /etc/my.cnf

:wq!保存退出

sudo service mysqld restart 重启mysql更新配置

原文地址:https://www.cnblogs.com/SasaL/p/10721441.html