# 第一步 wget -i -c https://repo.mysql.com//mysql80-community-release-el7-3.noarch.rpm # 第二步 yum -y install mysql80-community-release-el7-3.noarch.rpm # 第三步 yum -y install mysql-community-server 如果报错: Unable to find a match: mysql-community-server 解决: 先执行:yum module disable mysql 再执行:yum -y install mysql-community-server 最后在执行:yum -y install mysql-community-server