centos7 变更默认mariadb 记录
wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
yum -y localinstall mysql57-community-release-el7-11.noarch.rpm
yum -y install mysql-community-server
systemctl start mysqld
systemctl enable mysqld
systemctl daemon-reload
grep temp /var/log/mysqld.log
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'xxxx';
[mysqld]
character_set_server=utf8
init_connect='SET NAMES utf8'