mariadb启动时报错Job for mariadb.service failed because the control process exited with error code.

执行systemctl start mariadb.service后终端控制台报如下错误:

Job for mariadb.service failed because the control process exited with error code. See “systemctl status mariadb.service” and “journalctl -xe” for details.

解决方法如下:

cp /usr/share/mysql/my-huge.cnf /etc/my.cnf

cp: overwrite ‘/etc/my.cnf’? y

之后执行

systemctl start mariadb.service

mariadb服务启动成功

posted @ 2019-07-28 00:19  WaterGe  阅读(13619)  评论(0编辑  收藏  举报