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
- Open the File Manager (If you need directions on how to open file manager see File Manager).
- Navigate to the public—html directory or the directory your WordPress is installed at.
- Find the file called “wp-config.php.”
- Right click and Edit.
- You should now see a page of text or code.
- Find where it says “define('DB_NAME', 'mysite_wp1').” Mysite_wp1 is where you find the current database.
- Delete whatever is currently there (ex. mysite_wp1) and enter your database name.
- Find where it says “define('DB_USER', 'mysite_wp1');”—this is the current user.
- Replace whatever is currently there with your database username.
- Find where it says “define('DB_PASSWORD', 'Password123').” Password123 is where you find the current password.
- Replace whatever is currently there with your database user password.
- Click the Save Changes button in the upper right hand corner.
- Your new database should now be associated with your WordPress.