1062 - Duplicate entry '2' for key 'store_collection.PRIMARY'

Datagrip error image

I am a newbie who started learning MySQL and Django. Please help me. When I uploaded the SQL file into data grip it shows me an error. Please refer to the image where you can see the error. I tried changing the SQL code in many ways but it didn't work out. please help me.

The error means that there is already a value '2' in the table. Deleting the existing record from the table should help. https://www.jetbrains.com/help/datagrip/table-editor.html

Back to Top