CentOS7的yum源中mysql被换成了mariadb,手动安装又太慢,所以换一种快的方案来安装。


步骤如下:

 wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm

sudo yum install mysql-server

sudo service mysql start


安装完成后,版本是mysql5.6.29