1.下载 mysql5.7 yum 源:
地址:https://dev.mysql.com/get/mysql57-community-release-el6-9.noarch.rpm
进入:/usr/local/src
执行: wget https://dev.mysql.com/get/mysql57-community-release-el6-9.noarch.rpm
查看:
2.安装用来配置mysql的yum源的rpm包
rpm -Uvh mysql57-community-release-el6-9.noarch.rpm
或
yum localinstall -y mysql57-community-release-el6-9.noarch.rpm
3.安装 mysql
yum install mysql-community-server
4.启动 mysql
service mysqld start