centos7 安装mariadb、"systemctl status mariadb.service" and "journalctl -xe" for details

centos7 mariadb 安装

也可解决此错误:ob for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details

第一步:删除原有 内容

yum remove mariadb*   -- 彻底卸载 mariadb

第二步:安装 mariadb 所有依赖

yum install mariadb*

第三步:启动 mariadb服务

systemctl start mariadb

第四步:设置开机自启

systemctl enable mariadb

参考:https://blog.csdn.net/eclothy/article/details/52733891