1. 程式人生 > 其它 >伺服器重啟後,MySQL重啟失敗:[ERROR] Binlog has bad magic number; It‘s not a binary log file that can be used b

伺服器重啟後,MySQL重啟失敗:[ERROR] Binlog has bad magic number; It‘s not a binary log file that can be used b

技術標籤:踩坑日誌mysqllinux資料庫

現象:

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關閉的時間檢視最新的資料檔案是哪個,然後將它刪除即可
在這裡插入圖片描述
問題解決,啟動成功!