mysql乱码配置
时间:2021-07-01 10:21:17
帮助过:12人阅读
1.进入mysql
show variables like "char%"
2.在/etc/mysql/my.cnf中增加以下内容
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
collation-server = utf8_unicode_ci
init-connect=‘SET NAMES utf8‘
character-set-server = utf8
mysql乱码配置
标签:乱码 mysql乱码 mysqld nic utf8 nbsp my.cnf like etc