1、安装mysql#yum -y install mariadb mariadb-server
2、启动mariadb#systemctl start mariadb
3、登陆mariadb#mysql
4、设置mariadb开机自动启动#systemctl enable mariadb