1. 程式人生 > >centos7 變更默認mariadb 記錄

centos7 變更默認mariadb 記錄

init 默認 systemctl http bsp mmu yum install dev

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 記錄