You have to turn off identity insert, insert the records then turn on identity insert back.
Example:
ALTER TABLE ps_product DROP PRIMARY KEY, MODIFY id_product INT PRIMARY KEY NOT NULL; --insert commmand here.... ALTER TABLE ps_product DROP PRIMARY KEY, MODIFY id_product INT AUTO_INCREMENT PRIMARY KEY NOT NULL;
.png.022b5452a8f28f552bc9430097a16da2.png)