How to Transfer a WordPress Blog to a new Server

How to Transfer a WordPress Blog to a new Server or Web Hosting

I have been seeing many queries and requests about transfer / migration of a WordPress blog installation from one server to another server or web hosting account from different webmasters.

There is an increasing demand for a dependable and detailed tutorial for the same. Hence I decided to create a detailed tutorial with screenshots and steps that will clearly explain on how to migrate an already established WordPress blog to a different web hosting server without any issues.

Tutorial Legend:

  • OLDserver – The server on which the blog is already installed on.
  • NEWserver – The destination server of the new target web hosting company.
  • OLDdatabase – The database file of the original blog.
  • NEWdatabase – The database of the target blog.

A High level view of the procedure:

  • Backup the FTP files and folders to your local machine from the OLDserver.
  • Take a backup of the WordPress Database to your local machine from the OLDserver.
  • Create a new Database on the NEWserver
  • Import the OLDdatabase file to the freshly created NEWdatabase
  • Update settings on the NEWdatabase.
  • Upload the files and folder to the FTP of the NEWserver.
  • Edit the Wp-config.php file to ensure database and user details are correct.
  • Change the Name server of the domain to the new hosting.
  • Test your website features.

STEP 1: Download the Files and Folders from your FTP to your local computer

How to Transfer a WordPress Blog to a new Server or Web Hosting

You could either use a FTP client like FileZilla or directly download the Files and folder of your WordPress blog installation to your local computer. Please note that you should be downloading all the files, folders and the entire content of the folder where your “WordPress blog installation” resides in.

STEP 2: Download the original database from the OLDserver

This is the second step wherein you should download or export the OLDdatabase file to your local computer. Once you are logged in the OLDserver control panel, locate the phpMyadmin icon and click on it.

How to Transfer a WordPress Blog to a new Server or Web Hosting

Click on the database that we need to export / download on to the local machine as show in the image and further click on the “Export” tab on the right hand side as show in the next screenshot.

How to Transfer a WordPress Blog to a new Server or Web Hosting

How to Transfer a WordPress Blog to a new Server or Web Hosting

Settings for database export: The below boxes needs to remain checked as shown in the screenshot. Once the settings are all fine, enter a name for the export file (any name of your choice) and please click on the “Go” button to proceed for the export. Save the file.

How to Transfer a WordPress Blog to a new Server or Web Hosting

Great! Now you are done with everything you need from the OLDserver. Good job!

STEP 3: Import the FTP files to the NEWserver

This should be an easy task for you, upload all the files through your FTP client or webhosting control panel of your NEWserver and make sure the size of the backup and the migrated files are matching.

Step 4: Import the Database to your NEWserver

To start off, we will have to first create a new database, new database user and assign privileges on the NEWserver. This task is divided as below:

  • Create fresh database on the NEWserver
  • Create new database user on the NEWserver
  • Assign “All privileges” for the new DB user on the NEWdatabase created.
  • Import the OLDdatabase to the NEWdatabase.

How to Transfer a WordPress Blog to a new Server or Web Hosting

How to Transfer a WordPress Blog to a new Server or Web Hosting

How to Transfer a WordPress Blog to a new Server or Web Hosting

How to Transfer a WordPress Blog to a new Server or Web Hosting

How to Transfer a WordPress Blog to a new Server or Web Hosting

Create the Fresh database on the NEWserver from the control panel and follow the below screenshots to create a new user and further assign the privileges to the new user created for the database access as shown in the images above. Also take a note of the new database name and new database user name to use later.

Importing the OLDdatabase into the freshly created one

How to Transfer a WordPress Blog to a new Server or Web Hosting

Again access the phpMyadmin on the NEWserver and select the fresh created database and proceed to the “Import” tab as shown in the image and simply import the old database to the new one. This might take some time depending on the size of your database.

Once your database file is imported, it will give a confirmation message saying “N number of queries successfully executed”

Important change to make after importing the OLDdatabase to the NEWdatabase

You would need to make 3 checks as show in the screenshot and edit the WP_Options table value to the correct one. Here most case you would only need to edit the Upload_Path value as it will change with the change of host.

Only field you need to replace from what is shown in the screenshot is – replace “usedms4n” with your Cpanel login name or database name prefix that is auto created.

How to Transfer a WordPress Blog to a new Server or Web Hosting

Now before we call if completed, Final Step: Browse to your WordPress blog folder and edit “WP-config.php” file and make change the database name, database username, database password to the freshly created database and users.

Good Job! Now you are done with the database and File import. If you haven’t yet redirected your domain name server to the new webhosting name server, do that now and your migration is complete. Test all the features to find make sure it works great.

Feel free to drop a comment with your question and I will try my best to help you out resolving your issues.

31 Comments

  1. Seleema Spur May 22, 2011
    • Joshu May 22, 2011
  2. Anil Ram May 22, 2011
    • Joshu May 23, 2011
  3. Ragab @ spinal surge May 23, 2011
    • Joshu May 23, 2011
    • Bjarni Wark September 19, 2011
  4. Jenkins May 23, 2011
    • Joshu May 23, 2011
  5. Bob More May 24, 2011
    • Joshu May 24, 2011
  6. Fayaz Ahmad May 31, 2011
    • Joshu June 2, 2011
  7. Formica June 2, 2011
    • Joshu June 6, 2011
  8. Ricca Shulami June 2, 2011
  9. Norman June 3, 2011
  10. formica countertops June 6, 2011
  11. Apripta June 7, 2011
  12. Roofer Bolton June 13, 2011
  13. MDHAFiZ.NET June 19, 2011
  14. 12vid.com - Funny Vi June 30, 2011
  15. Reptile June 30, 2011
  16. ulikmaya July 8, 2011
  17. Bjarni Wark September 16, 2011
  18. 0-Host.de - Webhosti December 20, 2011
  19. reza December 21, 2011
  20. smartsite April 7, 2012
    • Joshu April 11, 2012
  21. halkin June 7, 2012
  22. Josh July 19, 2012