CentOS7 yum方式安装MySQL5.7
1、下载并安装MySQL官方的 Yum Repository
# wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
2、安装用的Yum Repository:
# yum -y install mysql57-community-release-el7-10.noarch.rpm
3、开始安装MySQL服务器
# yum -y install mysql-community-server
4、启动MySQL
# systemctl start mysqld.service
5、查看MySQL运行状态
# systemctl status mysqld.service
参考文档:https://www.cnblogs.com/porotin/p/9045391.html