Title: Databse error
Last modified: August 18, 2016

---

# Databse error

 *  Resolved [bpartch](https://wordpress.org/support/users/bpartch/)
 * (@bpartch)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/databse-error/)
 * I just upgraded from 2.0.1 to 2.1.3 and got this error after I ran the upgrade
   script:
 * `WordPress database error: [Duplicate entry '0' for key 1]
    INSERT INTO wp_categories(
   cat_ID, cat_name, category_nicename, category_description, category_parent, links_private,
   posts_private) VALUES ('0', 'Upcoming Interviews', 'upcoming-interviews', '','
   0', '0', '0')
 * Is this something I need to be worried about? If so, what should I do? I did 
   backup the old files but would hate to have to re-upload them again if avoiding
   it is at all possible.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/databse-error/#post-556192)
 * Based on this thread: [http://wordpress.org/support/topic/72981?replies=11](http://wordpress.org/support/topic/72981?replies=11)
 * Wonder if the wp_categories doesn’t have the auto_increment set for the cat_ID
   field?
 *  Thread Starter [bpartch](https://wordpress.org/support/users/bpartch/)
 * (@bpartch)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/databse-error/#post-556314)
 * Thanks, that seemed to fix it. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Databse error’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [upgrade](https://wordpress.org/support/topic-tag/upgrade/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [bpartch](https://wordpress.org/support/users/bpartch/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/databse-error/#post-556314)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
