i have migrated a mgento installation doing the following:
SQLSTATE: Integrity constraint violation: 1062 Duplicate entry '363624' for key 'PRIMARY'
It is not duplicated but rather something must be trying to duplicate it.
How did you export the database? I would check that the dumped SQL file has the line "SET FOREIGN_KEY_CHECKS=0;" or similar at the top.
If not, I would drop the database and add this line to the top of the file:
... and this line to the bottom:
... then try again.