Thursday, December 10, 2009

MySQL5 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的值,这个值与服务器的日志文件要对应上。
Reference: http://bugs.mysql.com/bug.php?id=15937
http://bugs.mysql.com/bug.php?id=8215

No comments :