wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql-community-server --nogpgcheck
systemctl start mysqld.service
systemctl status mysqld.service
grep "password" /var/log/mysqld.log
mysql -uroot -p
ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password';
-- 查看密码策略
show variables like '%password%';
grant all privileges on *.* to 'root'@'localhost' identified by 'password' with grant option;
flush privileges;
exit;
标签:rpm,mysql5.7,linux,community,mysqld,mysql,password,安装
From: https://www.cnblogs.com/zengzhihong/p/17769600.html