Transferring a WordPress application from one hosting provider to another is an easy task if performed properly. Basically the transfer of a WordPress site from one host to another consists of three parts - moving the files, moving the database and reconfiguration (if needed).
To move your files from one host to another you can use your favorite FTP client. For more information on how to use FTP, please check our FTP Tutorial
. It will teach you how to move the files of your application first to your local computer and then to upload them on the new account.
The second step is to move your database. First you need to export your database from the old hosting account. If it uses cPanel you can safely follow these instructions
. If not, contact the support team of your previous hosting company in order to receive more information on how to export your database.
After you have your data exported, create a new database
on your new hosting account and import your content in it
Now, you have your files and database transferred. All you have to do is to reconfigure your WordPress application to work from the new place. To do this, open the wp-config.php
file in your WordPress root folder and locate the following lines:define('DB_NAME', 'user_wrdp1');
/** MySQL database username */
/** MySQL database password */
You need to replace those values with your actual database, database username and password for it. Now save this file and your WordPress site should be up and running from your new hosting account!
Note that if you change the domain name of your site additional reconfiguration is required. For more information on that matter check our tutorial on how to change a WordPress site URL