Moving your WordPress blog to a new hosting

0 Flares 0 Flares ×

There are times when you need to move your wordpress blog to a new hosting provider. The cause might be anything but if you have already established blog you would never like to lose any any of your content. In this article I will discuss on how to move your wordpress blog to a new hosting server easily and with less down time. Using this process you will have a mirror image of your existing blog on the new hosting server. You do not need to reinstall your wordpress blog. 

The process described here can be applied to any size of wordpress blog. How ever for a large size blog you need to take special care when exporting and importing database as the DB size would be huge. So lets see how to move wordpress blog to a new hosting server.


Things you must have before migrating:


1. You must have the new hosting server’s control panel access.

2. URL and login details of the new server’s database.

3. DB dump of your existing database. (You can take a DB dump by using the export functionality of PHP My Admin )

4. Back files of your existing blog.


Now lets see the exact process.


STEP1: Take the DB dump of your existing WordPress blog


Login to your existing blog’s control panel and access PHPMyAdmin. Click on the DB name that is shown on the left navigation panel. Click on the Export tab from the menu.



From the export panel on the left side select all table and select the SQL radio button. You can also select the “zipped” radio button at the bottom to compress the file, click on go. The DB dump file will be downloaded to your local system, unzip the downloaded file.


STEP2: Create the new Database


Login to the control panel of your new hosting and login to the PHPMyAdmin application and create a new database (you can give same name as your existing DB name or you can give a new name). After creation of the new database click on the “Import” tab from the menu bar and click on chose file and select the sql DB dump that you have downloaded. Now click on go button. This process will generate the new database with all your existing data.




STEP3: Take the backup of your existing blog files and upload to new hosting server.


Login to the Control panel of your existing blog and take a back up or the root directory or the directory where your wordpress blogs files are located and then download the compressed file to your local system.

 Now login to the control panel of your new hosting server and upload the backup files to the root directory and un compress the file.

 You are almost done. Now you just need to modify the wp-config.php file of your blog. Edit the wp-config.php file and enter the details of your DB server informations, this looks something like below:


// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘new database name’);

/** MySQL database username */
define(‘DB_USER’, ‘new database username’);

/** MySQL database password */
define(‘DB_PASSWORD’, ‘new database password’);

/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);

Now all settings are done, time for a testing. You can access the blog by browsing the IP address of your server or if your hosting provider has given you a temporary URL access with that URL. If everything looks fine you can change the NS details of your domain name.


Note: Please take proper care while implementing these process specially while taking the DB dump, even a small mistake may lead you to a great problem. So best of luck.


+Ayodhyanath Guru holds a B.Tech degree in Electrical Engineering and has worked with various prestigious clients in the IT industry and presently working as a Software Engineer. He is a part time blogger and presently authors the Jafaloo.Com blog. Being a tech enthusiast Guru likes to surf the web and blogs about interesting technical topics like How-To guides, freewares, Tutorials, Software, Gadgets, web applications etc. Apart from blogging he likes coding in Java/J2EE and PHP.

You may also like...

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 0 Flares ×