UBuntu下配置MySQL字符集

/etc/mysql/mysql.conf.d/mysqld.cnf
在lc-messages-dir = /usr/share/mysql 语句后添加 
character-set-server=utf8


/etc/mysql/conf.d/mysql.cnf
直接写入下面的配置
[mysql]
default-character-set=utf8

SQL命令:status可以查看字符编码

猜你喜欢

转载自blog.csdn.net/m0_38032942/article/details/80770269
今日推荐