1. 程式人生 > >關於Mariadb啟動報錯Job for mariadb.service failed because the control process exited...

關於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

在該檔案中找到錯誤資訊即可。