Title: Restore database
Last modified: August 22, 2016

---

# Restore database

 *  [caroline](https://wordpress.org/support/users/makeupedia/)
 * (@makeupedia)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/restore-database-4/)
 * Hi,
 * I need to restore a database and followed the instructions from here: [http://codex.wordpress.org/Restoring_Your_Database_From_Backup](http://codex.wordpress.org/Restoring_Your_Database_From_Backup)
 * But (as usual) I got an error and it said “Duplicate entry”.
    ** Should I delete
   all tables before I upload it?  Thanks, Caroline

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

 *  [Brett](https://wordpress.org/support/users/bdeaton108/)
 * (@bdeaton108)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/restore-database-4/#post-5882554)
 * If you are importing the same database, yes. You will need to drop (delete) your
   tables first. Backup what you are about to drop (delete) first.
 *  Thread Starter [caroline](https://wordpress.org/support/users/makeupedia/)
 * (@makeupedia)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/restore-database-4/#post-5882655)
 * Ok thanks!
 * I’m still unable to reach my test-site “test.prema.se/wp-admin/”. It directs 
   towards “prema.se”, so if anyone knows how to replace the domain I would like
   to know.
 *  [Brett](https://wordpress.org/support/users/bdeaton108/)
 * (@bdeaton108)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/restore-database-4/#post-5882675)
 * You will need to edit the database you have running in your test site. Follow
   the steps to [Change the Site URL in the Database](http://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database).
 *  Thread Starter [caroline](https://wordpress.org/support/users/makeupedia/)
 * (@makeupedia)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/restore-database-4/#post-5882727)
 * Is it right to replace the site_url towards / ?

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

The topic ‘Restore database’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [caroline](https://wordpress.org/support/users/makeupedia/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/restore-database-4/#post-5882727)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
