# systemctl stop mysqld.service
# yum remove mysql*
# yum remove mysql-community-release-el7-5.noarch
# yum install mariadb mariadb-server
(无法使用)
# yum install mariadb*
(仍然无法使用)
# yum remove mariadb* mysql*
# rm -rf /var/lib/mysql
# yum install mariadb mariadb-server
(安装完成)
# mysql_secure_installation
(设置密码)
(可参考另一篇CentOS安装LAMP完成其他操作)
原文地址:http://blog.csdn.net/lane_l/article/details/41442995