24/7 U.S. Support – 877-595-4482
At this point in the WordPress migration class, we've migrated our WordPress Database and our WordPress Application Files. The next step we need to do is update our WordPress configuration file so that the application files can communicate with the database to make your site come alive. Again, this is not as hard as it sounds.
Earlier, we asked that you use the MySQL Database Wizard to create a database, create a database user, and assign that user to the database with all privileges. We also asked that you write this information down as it would be needed later.
The following steps will take you through updating your WordPress Configuration file:

aIn our previous example, we created the following MySQL credentials:
Our cPanel username is whhsup5, and as you can see from the above cPanel automatically adds this prefix to all database names and usernames.
The database credentials that WordPress uses to connect to your database are contained within the wp-config file. What we'll need to do is find the files and simply change them. Start off by finding this section within the wp-config.php file:
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'userna5_wp1');
/** MySQL database username */
define('DB_USER', 'userna5_wp1');
/** MySQL database password */
define('DB_PASSWORD', 'passwordgoeshere');
/** MySQL hostname */
define('DB_HOST', 'localhost');
Take a look carefully at the above code, and you should see that this file is define what the database name, username, and password are. The value 'localhost' is very commonly defined as the host, and the average user does not need to change this. After you find this section, update the values accordingly. In our example, the new changes will look like this:
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'whhsup5_wpress');
/** MySQL database username */
define('DB_USER', 'whhsup5_wpuser');
/** MySQL database password */
define('DB_PASSWORD', 'passwordgoeshere');
/** MySQL hostname */
define('DB_HOST', 'localhost');
After you've made the above changes, click the "Save Changes" button in the upper right.
With one more step to go, we're almost done with the WordPress Site Migration! Continue to the next article to learn how to test your work.
| Email: | support@WebHostingHub.com | Ticket: | Submit a Support Ticket |
|---|---|---|---|
| Call: |
877-595-4HUB (4482) 757-416-6627 (Intl.) |
Chat: | Click To Chat Now |
Copyright © 2013 Web Hosting Hub - Privacy Policy - Terms of Service
Might be nice to include a troubleshooting link afterward; my migration isn't working, and I may have done something wrong before or while consulting these instructions.
Thank you for making it clear and simple.
LFiggs