0%

MySQL设置字符编码

Linux配置文件路径 /etc/my.cnf

1
2
3
4
5
6
7
8
9
10
11
[mysqld]

character_set_server=utf8

[client]

default-character-set=utf8

[mysql]

default-character-set=utf8

查看字符编码

1
show variables like '%character%'