wget https://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpmyum -y install mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql-community-server
yum module disable mysqlyum -y install mysql-community-server
systemctl start mysqld
grep 'password' /var/log/mysqld.log
mysql -u root -p
ALTER USER 'root'@'localhost' IDENTIFIED BY '新密码';
SET GLOBAL validate_password_policy=0;
SET GLOBAL validate_password_policy=1;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '新密码';
exit
quit