Errno 121, duplicate key on write or update?

后端 未结 4 758
既然无缘
既然无缘 2020-12-07 00:36
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MO         


        
4条回答
  •  情深已故
    2020-12-07 01:15

    All the answers above are superb but didn't solve my problem even after i dropped all my tables, but everything worked perfectly and the migration ran smoothly after i dropped my DB and created it again.... It seems the keys are cached and aren't cleared after tables are dropped.

    Note : This is not an answer to the question but my experience that i felt might help another person.

提交回复
热议问题