1、下载RPM包 wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
2、本地安装源 yum localinstall mysql57-community-release-el7-8.noarch.rpm
3、yum install mysql-community-server 安装
如果出错
yum list removed |grep mysql
删除相关包在此安装
删除之后yum-y install mysql-server