伺服器重啟後,MySQL重啟失敗:[ERROR] Binlog has bad magic number; It‘s not a binary log file that can be used b
阿新 • • 發佈:2021-01-08
現象:
MySQL伺服器強制重啟後,發現MySQL自啟動失敗
分析解決:
檢視MySQL錯誤日誌:
2021-01-04 11:35:53 139718215592128 [ERROR] Binlog has bad magic number; It's not a binary log file that can be used by this version of MySQL 2021-01-04 11:35:53 139718215592128 [ERROR] Can't init tc log 2021-01-04 11:35:53 139718215592128 [ERROR] Aborting
解決:
根據MySQL關閉的時間檢視最新的資料檔案是哪個,然後將它刪除即可
問題解決,啟動成功!