1、下载MySQL官方的 Yum Repositorycd ~ && mkdir /usr/mysql && cd /usr/mysql wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm2、用yum安装Yum Repositoryyum -y install mysql57-community-release-el7-10.noarch.rpm3、安装MySQL服务器yum -y install mysql-community-server4、Mysql设置启动Mysql数据库:systemctl start mysqld.service查看Mysql运行状态:systemctl status mysqld.service出现以下信息,表示MySQL正常运行● mysqld.service - MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabl