A WordPress migration from one hosting provider to another is an easy task if performed properly. It consists of three parts – moving the files, moving the database and reconfiguration (if needed).
Transfer WordPress Files
To move your files from one host to another you can use your favorite FTP client.
Migrate the WordPress Database
The second step is to move your database. First, you need to export your database from the old hosting account. After you have your data exported, create a new database on your new hosting account and import the migrated content in it.
Reconfigure WordPress to work from the new server
Next, reconfigure your WordPress application to work from the new place. To do this, open the wp-config.php file in the WordPress root folder and locate the following lines:
define('DB_NAME', 'user_wrdp1');
/** MySQL database username */
define('DB_USER', 'user_wrdp1');
/** MySQL database password */
define('DB_PASSWORD', 'password');
/** MySQL hostname */
define('DB_HOST', 'hostname');
Replace those values with your actual database, database username and password for it. The hostname should be replaced with localhost. Then save the file and your WordPress site should be up and running from your new hosting account!