Image by MethoxyRoxy via Flickr
I had a problem with slave replication, every now and then we would get an error which manually had to be resolved
We used Set Global sql_slave_skip_counter = 1; start slave;
You might also get some of those when you set up a new slave using a mysqldump. If from the time you started the mysqldump and by the time it finished, some lines were added to the bin logs or you started it at the wrong position, then you would get some duplication errors.
While it looks concerning, don’t panic. You can fix it by skipping the lines that are duplicates, although it’s not an ideal situation.
Now if you want to completely avoid errors, or specifically duplicates and you are sure that the odd ones that …
[Read more]