永久支持简体中文
[root@localhost ~]# vim /etc/my.cnf
添加如下四行:
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
临时支持简体中文
[root@localhost ~]# mysql -uroot -p123123
MariaDB [(none)]> charset utf8;
Charset changed
原文:https://www.cnblogs.com/lyqlyqlyq/p/11653018.html