I have a huge database full of duplicate entry errors. What is the fastest way to remove all of the errors?
Error: 1062 - Duplicate entry 'X' for key 'PRIMARY'
Thanks in advance.
I have a huge database full of duplicate entry errors. What is the fastest way to remove all of the errors?
Error: 1062 - Duplicate entry 'X' for key 'PRIMARY'
Thanks in advance.
if it does no matter what is left in table do like that:
insert
to insert ignore
i did this once, even not at production/not big DB - 200mb per dump - just some anoing relation issue at localhost. I know it's not pretty... but for me worked.
EDIT: if someone thinks that it's bad solution, please leave an comment - i would like to know how it could be better...