MySql主备同步、binlog监听异常

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/asty9000/article/details/82691020

在使用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%'; 

解决办法是将高版本的binlog_checksum设置为NONE或CRC32。

猜你喜欢

转载自blog.csdn.net/asty9000/article/details/82691020