MySQL duplicate entry error even though there is no duplicate entry
Your code and schema are OK. You probably trying on previous version of table. http://sqlfiddle.com/#!2/9dc64/1/0 Your table even has no UNIQUE, so that error is impossible on that table. Backup data from that table, drop it and re-create. Maybe you tried to run that CREATE TABLE IF NOT EXIST. It was not created, you have … Read more