1.先检查系统是否装有mysql rpm -qa | grep mysql 2.下载mysql的repo源(5.7) wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm 如果报错: -bash: wget: 未找到命令 安装插件 yum -y install wget 3.安装 mysql-community-release-el7-5.noarch.rpm包 sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm 4.安