mysql
yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
yum install mysql-community-server
service mysqld start
查看临时密码
grep 'A temporary password' /var/log/mysqld.log |tail -1
/usr/bin/mysql_secure_installation
降低密码强度要求
set global validate_password_policy=LOW;
alter user 'root'@'localhost' identified by 'yourpassword';
允许其他host登录
use mysql;
update user set host = '%' where user = 'root';
FLUSH PRIVILEGES;