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服务启动成功

猜你喜欢

转载自www.cnblogs.com/WaterGe/p/11257415.html