The mysql database support for Simplified Chinese

Permanent Simplified Chinese
[root @ localhost ~] # vim /etc/my.cnf
add the following four lines:
[Client]
default = UTF8-Character-SET

[mysql]
default-character-set=utf8

Temporary support for Simplified Chinese
[root @ localhost ~] # MySQL-uroot--p123123
MariaDB [(none)]> charset utf8;
Charset changed

Guess you like

Origin www.cnblogs.com/lyqlyqlyq/p/11653018.html