Is it recommended to add the slave-skip-errors = 1062 option into the my.cnf file?
I want to keep my data consistent.
Thanks for your opinions.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I personally recommend against it. If you run into this error, something got out of sync. Skipping that error without ensuring that things are correct could result in your slave database having different results in the other columns for the primary key in question.
Find the root cause of your error, fix that.