loading...
Migrate the WordPress Database
Print
  • wordpress, migrate, database, mysql, migration
  • 9

Migrate the WordPress 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!

Was this answer helpful?

Related Articles