1 yum install mariadb*

2 systemctl start mariadb.service 

3 systemctl enable mariadb.service

   set password...mysql_secure_installation


##必须先启动服务,然后再设置密码, 否则会报如下错误:

linux安装mariadb记录_mariadb