Title: Import localhost database to hosting causes problems
Last modified: August 24, 2016

---

# Import localhost database to hosting causes problems

 *  [immichael25](https://wordpress.org/support/users/immichael25/)
 * (@immichael25)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/import-localhost-database-to-hosting-causes-problems/)
 * Hello there,
 * i have uploaded all my files from localhost to my hosting.I imported my database
   to phpmyadmin and when i change the wp-config to read my localhost database, 
   gives error on wp-admin page. If i put the database that was created with my 
   hosting everything works good. But i don’t want to lose all the work i did. What
   should i do?

Viewing 1 replies (of 1 total)

 *  [Matt Knowles](https://wordpress.org/support/users/aestheticdesign/)
 * (@aestheticdesign)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/import-localhost-database-to-hosting-causes-problems/#post-6129782)
 * You probably need to change the site and WordPress URLs in your database.
 * Make sure you’ve followed all the steps detailed here:
 * [https://codex.wordpress.org/Moving_WordPress](https://codex.wordpress.org/Moving_WordPress)

Viewing 1 replies (of 1 total)

The topic ‘Import localhost database to hosting causes problems’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Matt Knowles](https://wordpress.org/support/users/aestheticdesign/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/import-localhost-database-to-hosting-causes-problems/#post-6129782)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
