I export the table from a DB. I create a copy of it with a different name but the same structure and empty. Then I import the first table into it. Mistake:
#1062 - Duplicate entry '451' for key 'PRIMARY' Ok, I delete the PRIMARY and AUTO_INCREMENT from the id column, I make the usual INDEX try again. Same. How so? Well, I can’t have a duplicate. I just exported this table from the existing one, I wouldn’t allow mysql to create a duplicate.