参考:https://www.linode.com/docs/databases/mysql/how-to-install-mysql-on-centos-7
centos 7上没有办法使用yum install mysql等命令了:
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpmsudo rpm -ivh mysql-community-release-el7-5.noarch.rpmyum updatesudo yum install mysql-serversudo systemctl start mysqld
完毕。