#1062 - Duplicate entry for key 'PRIMARY'
You need to remove shares
as your PRIMARY KEY
OR UNIQUE_KEY
- Make sure
PRIMARY KEY
was selectedAUTO_INCREMENT
. - Just enable Auto increment by :
ALTER TABLE [table name] AUTO_INCREMENT = 1
- When you execute the insert command you have to skip this key.
Use SHOW CREATE TABLE your-table-name
to see what column is your primary key.