天天看点

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。

继续阅读