yum -y install yum-utils

 

centos7
rpm -ivh https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm

centos6

rpm -ivh https://dev.mysql.com/get/mysql80-community-release-el6-1.noarch.rpm

yum-config-manager –disable mysql80-community
yum-config-manager –enable mysql57-community
yum install mysql-community-server
systemctl start mysqld
systemctl enable mysqld
systemctl status mysqld
grep ‘temporary password’ /var/log/mysqld.log

mysql -uroot -p
mysql> ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘aabbcc122222’;

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注