关于Mariadb启动报错Job for mariadb.service failed because the control process exited...

MariaDB重启后,执行 systemctl start mariadb 启动报错

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

根据官方提示执行 systemctl status mariadb.service 或者 journalctl -xe 并不能看出真正原因,此时可以查看mariadb的日志文件,查看错误原因。

cd /var/log/mariadb/
vi mariadb.log

在该文件中找到错误信息即可。

猜你喜欢

转载自blog.csdn.net/twypx/article/details/81450240