Migrate your WordPress installation

wordpress-logoThe first thing you have to do is to backup all your files from your web host, preferably in a .zip file format,  once you have done that, download the zip file to your computer.

The second thing you have to do, is to go inside WordPress and export all your data using the export tool of WordPress this will give you as a result an XML file with the content of the blog, just to be safe.

Now the next step is to backup your Mysql database using PhpMyAdmin, if you are using Cpanel you can go ahead and download one of your security copies of the database. This will give you tar.gz file with SQL instructions on your computer,  we will use it later on for the import.

Once you had downloaded all the necessary files to restore your website in the other domain, you can now upload de the zip file into your new domain, decompress the zip file using the tools from Cpanel.

Now create a new Mysql database add an user into the database with full privileges, and using one of your security copies restore the data using PhpmyAdmin. Then go and configure the file:

wp-config.php

Change this parameters:
define(‘DB_NAME’, ‘name_of_db’);
define(‘DB_USER’, ‘useradm’);
define(‘DB_PASSWORD’, ‘yourpassword’);
define(‘DB_HOST’, ‘localhost’);
define(‘DB_CHARSET’, ‘utf8’);
define(‘DB_COLLATE’, ”);

When you are done with the edition of the file, you can finally refresh your website and your WordPress migration will be complete.

Leave a Comment