一.下载mysql的yum源
1.地址可根据自己需求下载 http://repo.mysql.com/
wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm
2.执行下载源
rpm -ivh mysql57-community-release-el7-8.noarch.rpm
3.安装
yum -y install mysql-server
4.启动
service mysqld restart
5.查看安装后的默认密码
6.输入默认密码进入
5.7.20 为了安全密码 必须包含 数字字母符号
alter user 'root'@'localhost' identified by 'Mysql@2018';
flush privileges
标签:--,rpm,MySql,community,noarch,yum,mysql,安装 From: https://blog.51cto.com/ratelcloud/7452496