mysql-5.0.37 replication fails with log event entry exceeded max_allowed_packet

配置文件中有二个参数设置需要注意,max_allowed_packet在主从服务器上的设置最好是设置相同,并且将read_buffer_size <= max_allowed_packet

如果这二个配置正确,仍然报错,则需要stop slave,并change master to,调整master_log_pos的值,这个值与服务器的日志文件要对应上。

References

  1. http://bugs.mysql.com/bug.php?id=15937
  2. http://bugs.mysql.com/bug.php?id=8215