In the last two chapters, I talked about Installing WordPress Locally and Building Custom WordPress Theme. This chapter will cover exporting your local WordPress to a web host. Assume you are done with the local WordPress development, it is time to learn how to export and import WordPress. Then you can keep the local version for backup purpose and future development (ie. testing new themes, plugins, and upgrades).
1. Export Local Database
Login to your local phpMyAdmin, select the database from the dropdown. Click on the Export tab:
- Under the Export field, make sure all tables are selected
- Under the Structure field, tick "Add DROP TABLE / DROP VIEW"
- Tick "Save as File"
- Then click Go and it will prompt you to download a SQL file

2. Find & Replace All Local URLs
Open the database SQL file with a text editor. Find and replace all local URLs with your domain URL (eg. replace all "http://localhost:8888/mysite" with "http://www.yourdomain.com").

3. Import The Database
Login to your server cPanel, go to MySQL Databases, create a new database and assign a user. Now go to phpMyAdmin, select the database (the one that was just created) from the dropdown, click on the Import tab, browse the SQL file and click Go.

4. Upload WordPress
Upload the entire WordPress folder to your server.
5. Change The wp-config.php Setting
On your server, open the wp-config.php file. Change the database details to reflect your server settings.

6. Done
Go to your website and everything should work perfect.
being automatically added to the end of my URL and nothing comes up.
amaaaazziiinnnnnngggggg…
thanx to you…… :)
Thank you for the tutorial
THANKYOU THANKYOU!!!!
Helped so much!!!!!!
Which databases has to be selected with the local phpMyAdmin?
Great Danke merci thanks.
It’s amazing
hi i am doing same but its coming a blank screen
Just curious, how does one go about getting the gui to display in ubuntu? I can access phpmyadmin in the terminal, but I want to use the fancy gui like you have done.
Thanks!
Hey, you have done great job. Nice work. Thanks for that.
Los Angeles Web Design
Great share. I have a question, Could you share more information about white iphone 4?
White iphone 4 Conversion Kit is now the hottest iphone 4 piece that you should get!
Great tutorial!!
Thank youuuuuuuuuuuu XD XD
Hey i did everything the tutorial told me to do, but my pages arent working. Im getting an internal server error. My front page works fine but the rest of the site doesnt seem to be connected… do you have any advice
It happened the same to me…. looking for answers…
Apparently the permalinks settings were not exported. I putted the permalinks settings back to default, and it worked.
Now we need to find out how to make the permalinks work with the other settings…
kalmıyacak o kimsenin evinde
Thanks for sharing. Lol
thanks! great tutorial!
Hi,
Something goes wrong…. if I open the page, automaticly :8888 is added.
What to do?
Thanks!
this happened to me too, i dind’t changed the local host url (http://localhost:8888/) for the new one… step 2
For the people have the auto insertion of :8888 problem. Go to phpMYadmin on the Live server and do a search for 8888, you will see that it still appears a few times in the wp_options table, ie. for ‘siteurl’ etc. It should only appear in a few fields. Edit these fields manually pasting in your Live URL. Now, everything should work properly…
Thank you!! Very helpful, great technique and great explanation. And looks beautiful!!
Hi,
Something goes wrong…. if I open the page, automaticly :8888 is added.
What to do?
Thanks!