mysql的字码设置方法
我是按照这篇文章来的https://www.linuxidc.com/Linux/2016-09/135273.htm
但是看样子觉得https://www.cnblogs.com/xiaoluo501395377/archive/2013/05/14/3077880.html这篇文章也像是靠谱的样子
最后放上我的my.cnf
[mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql character-set-server = utf8 collation-server = utf8_general_ci # skip-grant-tables # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid [client] default-character-set = utf8