天天看點

MySql主備同步、binlog監聽異常

在使用Mysql進行主備同步、binlog監聽時,可能會出現異常資訊:Slave can not handle replication events with the checksum that master is configured to log。該異常是由于主備庫使用了不同的binlog_checksum設定,常見于master為版本5.6+,slave版本較低的情況,因為Mysql5.6預設的binlog_checksum設定為CRC32,而之前的版本預設為NONE。

檢視binlog_checksum設定

show variables like '%binlog%'; 
           
MySql主備同步、binlog監聽異常
MySql主備同步、binlog監聽異常

解決辦法是将高版本的binlog_checksum設定為NONE或CRC32。

繼續閱讀