天天看點

禅道怎麼啟動mysql_禅道啟動mysql報錯connectByPDO

禅道怎麼啟動mysql_禅道啟動mysql報錯connectByPDO

image.png

啟動日志貌似也正常

[[email protected] zbox]# ./zbox restart

(20014)Internal error (specific information not available): AH00058: Error retrieving pid file /opt/zbox/tmp/apache/httpd.pid

AH00059: Remove it before continuing if it is corrupted.

Retart Apache success

ERROR! MySQL server is not running!

Retart Mysql success

其實這裡mysql是啟動失敗了,這裡注意一下,禅道的mysql是自帶內建的,資料庫沒有跟系統本身的mysql在一起。

mysql的配置:

opt/zbox/etc/mysql/

mysql日志路徑:

/opt/zbox/logs/mysql_error.log

可以看到有一行日志:

2020-07-20 13:48:32 139974368282368 [Note] InnoDB: Dumping buffer pool(s) not yet started

2020-07-20 13:48:32 139974929586304 [Note] Plugin 'FEEDBACK' is disabled.

2020-07-20 13:48:32 139974929586304 [Note] Recovering after a crash using tc.log

2020-07-20 13:48:32 139974929586304 [ERROR] Can't init tc log

2020-07-20 13:48:32 139974929586304 [ERROR] Aborting

網上查找原因:

說是因為硬碟之前撐爆了導緻mysql無法啟動,就算硬碟恢複了也不能啟動,需要把tc.log檔案删掉即可。

在禅道目錄查找tc.log檔案在哪裡:

find /opt/zbox -name 'tc.log'

發現結果是:/opt/zbox/data/mysql/tc.log

于是删除:rm -rf /opt/zbox/data/mysql/tc.log

重新啟動禅道:

cd /opt/zbox

./zbox start

[[email protected] zbox]# ./zbox restart

Retart Apache success

ERROR! MySQL server is not running!

Retart Mysql success

估計禅道自己也沒有考慮到硬碟撐爆的情況下,是以日志上沒有展現出來!