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