# Duplicate entry '1' for key 1

**URL:** <https://forums.percona.com/t/duplicate-entry-1-for-key-1/700>\
**Category:** Other MySQL® Questions\
**Created:** [April 4, 2008, 1:07am UTC](https://forums.percona.com/t/duplicate-entry-1-for-key-1/700 "2008-04-04T01:07:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asaaas](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@asaaas](https://forums.percona.com/u/asaaas)\
**Post date:** [April 4, 2008, 1:07am UTC](https://forums.percona.com/t/duplicate-entry-1-for-key-1/700/1 "2008-04-04T01:07:27Z")

</div>

Hlleo

If this

Duplicate entry ‘1’ for key 1

shown to me , what will be the problem and what i have to do ?

---

<div class="post-metadata">

**Author:** ![debug](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/debug/32/772_2.png) [@debug](https://forums.percona.com/u/debug)\
**Post date:** [April 6, 2008, 7:19pm UTC](https://forums.percona.com/t/duplicate-entry-1-for-key-1/700/2 "2008-04-06T19:19:10Z")

</div>

It means that there is a row in table, which has “1” value in first key column.  
You should first check what is this key column name - just do ‘show create table’, and see line like ‘PRIMARY KEY …’.  
And then you can review your query, and check, why you are inserting data with duplicate key.
