Title: database error when importing
Last modified: August 22, 2016

---

# database error when importing

 *  [rltullis](https://wordpress.org/support/users/rltullis/)
 * (@rltullis)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/database-error-when-importing/)
 * i get the following everytime i try to import my database to a new host. any 
   idea how to remedy?
 * Error
    SQL query:
 * —
    — Dumping data for table `wp_commentmeta` — INSERT INTO `wp_commentmeta` (`
   meta_id` , `comment_id` , `meta_key` , `meta_value` ) VALUES ( 1, 2, ‘_wp_trash_meta_status’,‘
   0’ ) ;
 * MySQL said: Documentation
 * #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’

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

 *  [Valet](https://wordpress.org/support/users/wpvalet/)
 * (@wpvalet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/database-error-when-importing/#post-5616165)
 * Try this :
 * Create a new fresh database and then import the old db to the new one and it 
   should work.
 * Please let us know how it goes.
 *  Thread Starter [rltullis](https://wordpress.org/support/users/rltullis/)
 * (@rltullis)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/database-error-when-importing/#post-5616167)
 * want to be sure i understand.
    create new database on new host and then import
   old db into it from my old host?
 *  [Valet](https://wordpress.org/support/users/wpvalet/)
 * (@wpvalet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/database-error-when-importing/#post-5616169)
 * Yeah, it might be possible that the database you are using on the new host is
   already in use.
 * Creating a new database on the new host will help eliminate this issue
 *  Thread Starter [rltullis](https://wordpress.org/support/users/rltullis/)
 * (@rltullis)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/database-error-when-importing/#post-5616171)
 * im new to this but how do i creat a new database in phpmyadmin
 *  [Valet](https://wordpress.org/support/users/wpvalet/)
 * (@wpvalet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/database-error-when-importing/#post-5616172)
 * [https://www.siteground.com/tutorials/phpmyadmin/phpmyadmin_create_database.htm](https://www.siteground.com/tutorials/phpmyadmin/phpmyadmin_create_database.htm)
   should help
 *  Thread Starter [rltullis](https://wordpress.org/support/users/rltullis/)
 * (@rltullis)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/database-error-when-importing/#post-5616181)
 * i cant seem to find cpanel access for godaddy they are tough to work with
 *  [Valet](https://wordpress.org/support/users/wpvalet/)
 * (@wpvalet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/database-error-when-importing/#post-5616195)
 * You should get in touch with their [support](https://support.godaddy.com/) in
   that case. They should help you with the same.

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

The topic ‘database error when importing’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [Valet](https://wordpress.org/support/users/wpvalet/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/database-error-when-importing/#post-5616195)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
