时间:2021-07-01 10:21:17 帮助过:3人阅读
系统:阿里云
输入:show variables like ‘character_set_%‘;
输入:alter database dbname default character set utf8;
输入:vi /etc/my.cnf
在黄色区域添加如下代码:
default-character-set=utf8 [client] default-character-set=utf8
输入:service mysqld restart
输入:show variables like ‘character_set_%‘;
Linux查看并修改mysql的编码
标签: