centos7 变更默认mariadb 记录

时间:2018-10-09 23:46:13   收藏:0   阅读:247

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‘

原文:https://www.cnblogs.com/infaaf/p/9763720.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!