Answer the question
In order to leave comments, you need to log in
How to resolve the duplicate primary key error during replication (without skipping it)?
I'm moving to Amazon RDS MySQL. I set up master and slave according to their guide, made the dump necessary for replication, imported it to the slave, and at the start of replication I caught a duplicate key error.
Last_SQL_Errno: 1062
Last_SQL_Error: Error 'Duplicate entry '3468603' for key 'users.PRIMARY'' on query. Default database: '~somedbname~'. Query: 'INSERT INTO users
SET ~some insert data~'
Answer the question
In order to leave comments, you need to log in
That is, you have a local master, and RDS - slave?
Perhaps you started replicating from the wrong position?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question