Changing the Associate DB and User to WordPress

This article will help you know how to associate a database

Make sure you have the following information already:

  • Full database name (ex. mysite_wp1)
  • Database username and password - you should have set this when you created the user
  1. Open the File Manager (If you need directions on how to open file manager see File Manager).
  2. Navigate to the public—html directory or the directory your WordPress is installed at.
  3. Find the file called “wp-config.php.”
  4. Right click and Edit.
  5. You should now see a page of text or code.
  6. Find where it says “define('DB_NAME', 'mysite_wp1').” Mysite_wp1 is where you find the current database.
  7. Delete whatever is currently there (ex. mysite_wp1) and enter your database name.
  8. Find where it says “define('DB_USER', 'mysite_wp1');”—this is the current user.
  9. Replace whatever is currently there with your database username.
  10. Find where it says “define('DB_PASSWORD', 'Password123').” Password123 is where you find the current password.
  11. Replace whatever is currently there with your database user password.
  12. Click the Save Changes button in the upper right hand corner.
  13. Your new database should now be associated with your WordPress.