Transferring a WordPress website from one hosting provider to another provider is an very easy task.
To move WordPress site from one host to another host consists of three parts
- Moving the files
- Moving the database
- Reconfiguration
To move your files from one host to another host by using the FTP client and upload files via FTP to the new account.
The second step is to move your database. First you need to export your database from the old hosting account.
Steps to export database:
- Login to your cpanel account.
- Choose phpmyadmin.
- In that choose the database and click the option export.
- Save the exported database file.
After you have your database exported, create a new database on your new hosting account and import your content in it.
Now your files and database transferred.
Now reconfigure your WordPress website to work from the new place.
To do this, open the wp-config.php file in your WordPress root folder and find the following lines:
define(‘DB_NAME’, ‘user_wrdp1’);
/** MySQL database username */
define(‘DB_USER’, ‘user_wrdp1’);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘password’);
You need to replace those names and password 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!