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 come along are not important, then why not try log-slave-errors=1062 . Even better, you can set it to “all” and be completely oblivious to any problem that comes along.
Every now and then you can check the log errors and if there are too many problems, get a new mysqldump to re-sync the slave.