rpm -qa|grep mariadb
rpm -e –nodeps <上述文件名> 卸载mariadb
rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
yum -y install mysql-community-server
rpm -qa|grep mariadb
rpm -e –nodeps <上述文件名> 卸载mariadb
rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
yum -y install mysql-community-server