Title: Move wp from localhost to server
Last modified: August 21, 2016

---

# Move wp from localhost to server

 *  [foysalbony](https://wordpress.org/support/users/foysalbony/)
 * (@foysalbony)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/move-wp-from-localhost-to-server/)
 * Hi,
 * Good day! I like to inform you that I like to move my new WP site from localhost
   to online server (000webhost.com). So, I went to the 000webhost.com and uploaded/
   backup my all files there. Then I created a new database there and when I imported
   the database (wp.sql), then got an error massage:
 * “Error
 * SQL query:
 * —
    — Database: `wp` — CREATE DATABASE IF NOT EXISTS `wp` DEFAULT CHARACTER SET
   latin1 COLLATE latin1_swedish_ci;
 * MySQL said: Documentation
    #1044 – Access denied for user ‘a8864920_root’@’localhost’
   to database ‘wp’”
 * So, please help me to solve this problem as well. No more, I am waiting for your
   kind response.
 * Thank you.

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

 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/move-wp-from-localhost-to-server/#post-4665085)
 * You were able to create a database (called “wp”), but you’re not allowed to import
   the .SQL file to it, correct?
 * Did you try using another name for the database? “wp” is very generic, perhaps
   your host has reserved/blocked that particular name?
 *  [Kelly Makelele](https://wordpress.org/support/users/makelele/)
 * (@makelele)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/move-wp-from-localhost-to-server/#post-4665156)
 * Hi Refin,
 * Rephrase your question.
    Because from what you mention your website was initially
   online.
 *  Thread Starter [foysalbony](https://wordpress.org/support/users/foysalbony/)
 * (@foysalbony)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/move-wp-from-localhost-to-server/#post-4665164)
 * Hi Senff,
    Good day! I like to inform you that according to your advice I was
   tried to move my wp site from localhost to free online server (000webhost) but
   failed.
 * Then for testing, I just export database (a8864920_wp.sql) from 000webhost. Then
   go to the localhost phpmyadmin and created a new database named “new_site”. Then
   import it there. And I am wondered that it worked! Now I understood that 000webhost
   is not allowed to import any database in free account.
 * So, if you don’t mind, can you please give me some free hosting sites address
   where allow to import any database in free account as well.
 * No more, I am waiting for your kind response. Thank you. Be well.
 * N:B: I use the same database for wp sites. I just change the table prefix their
   as well.

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

The topic ‘Move wp from localhost to server’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: [foysalbony](https://wordpress.org/support/users/foysalbony/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/move-wp-from-localhost-to-server/#post-4665164)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
