phpmyadmin error “#1062 - Duplicate entry '1' for key 1”
问题 I dropped all tables from a database then restore(import) a backup. Afterwards I am getting error #1062 - Duplicate entry '1' for key 1 . Should i repeat the process. Or something else? Why this error is coming? 回答1: When you export your sql from php admin Select "custom" as export method" then, instead of 'insert', choose "update" This will perform update-statements and prevent duplicated inserts. 回答2: This indicates that you have a UNIQUE or PRIMARY index on a table, and there is a