wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
yum localinstall mysql57-community-release-el7-8.noarch.rpm
yum repolist enabled | grep "mysql.-community."
yum install mysql-community-server
systemctl start mysqld
grep 'temporary password' /var/log/mysqld.log
查询初始密码
mysql -u root -p
密码登录
set password for 'root'@'localhost'=password('123456Aa?');
done!