How to transfer my WordPress site from another host?

Transferring a WordPress site from one host to another involves three steps. The first one is transferring your WordPress files,  the second is moving your WordPress database and the third step is to configure your WordPress wp-config.php file.

  • You need to download your WordPress files and upload them to your new hosting account. This can be easily done using the FileZilla software if your hosting provider supports FTP. Detailed article on how to use FileZilla can be found here:

https://webhostface.com/kb/kb/knowledgebase/how-to-upload-files-using-filezilla/

*Note you must upload your WordPress files in the Public_html folder as this is normally your hosting root directory.

  • Export your MySQL database from your previous hosting provider:

https://webhostface.com/kb/kb/knowledgebase/export-database-through-phpmyadmin/

  • Create a new database and import your MySQL database through the phpMyAdmin on your hosting account here:

https://webhostface.com/kb/kb/knowledgebase/import-database-through-phpmyadmin/

With this you have completed the first two steps in the transfer process. Now you have your WordPress moved over, but when you access it you should see an error that MySQL database connection could not be established.

  • Since we have created a new MySQL database and imported the SQL file, the username and password for the database itself will be different. What you need to do is modify the WordPress wp-config.php file and edit the following lines.

// MySQL settings – You can get this info from your web host 
//The name of the database for WordPress */
define(‘DB_NAME’, ‘Database Name‘);
//MySQL database username
define(‘DB_USER’, ‘Database User‘);
//MySQL database password
define(‘DB_PASSWORD’, ‘Password‘);

The new database details are the ones you have set in step 3.

WebHostFace

Share
Published by
WebHostFace