1. yum -y install wget
2.wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
3. rpm -ivh mysql-community-release-el7-5.noarch.rpm
4.yum install mysql-server
1. yum -y install wget
2.wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
3. rpm -ivh mysql-community-release-el7-5.noarch.rpm
4.yum install mysql-server
转载于:https://www.cnblogs.com/2016-zck/p/10302718.html