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'

posted @ 2018-10-09 23:00  EngineTang  阅读(263)  评论(0编辑  收藏  举报