centos7 变更默认mariadb 记录
Posted infaaf
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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‘
以上是关于centos7 变更默认mariadb 记录的主要内容,如果未能解决你的问题,请参考以下文章
在CentOS7上配置MariaDB-Galera-Cluster过程全记录