yum -y install mariadb-server
systemctl stop mariadb.service systemctl start mariadb.service
systemctl enable mariadb.service
centos7安装mysql
原文:https://www.cnblogs.com/kangleweb/p/9264103.html