Daily Archives: March 29, 2014

Home »  2014 »  March »  29th (Saturday)

Binlog has bad magic number;  It’s not a binary log file that can be used by this version of MySQL

Binlog has bad magic number (mysql error)
by DAVID on NOVEMBER 20, 2012
My MySql server had the following lines in the error log:
121119 22:50:57 mysqld started
121119 22:50:57 InnoDB: Started; log sequence number 0 43655
121119 22:50:57 [ERROR] Binlog has bad magic number; It’s not a binary log file that can be used by this version of MySQL
121119 22:50:57 [ERROR] Can’t init tc log
121119 22:50:57 [ERROR] Aborting
I fixed the problem by renaming the mysql-bin.index file:
mv mysql-bin.index mysql-bin.index-corrupt