编辑文件
# vim /etc/my.cnf.d/server.cnf
在【mysqld】下面添加两行
init-connect='SET NAMES utf8'
character-set-server = utf8
重启MariaDB即可
systemctl restart mariadb
编辑文件
# vim /etc/my.cnf.d/server.cnf
在【mysqld】下面添加两行
init-connect='SET NAMES utf8'
character-set-server = utf8
重启MariaDB即可
systemctl restart mariadb