yum -y install mariadb //安装mariadb
systemctl start mariadb.service //启动mariadb
然后提示如下:
Failed to start mariadb.service: Unit not found
rpm -qa|grep mariadb //查询是否安装成功
但却是提示成功
反复卸载重装仍然如此,最好寻得一博文,解决如下:
yum install -y mariadb-server //需要安装mariadb-server
博文地址:https://blog.csdn.net/qq_28450919/article/details/78563370