How does WordPress know which database on my server to use?
Posted: Sun Aug 10, 2014 3:53 pm
I'm a new user to WordPress. I just installed a MySQL database on my server space.
Host: dwhittaker-b.db.sonic.net
I installed WordPress today and am going through all the settings to create a blog for a client whose web site I created. The test site is located at http://www.neptunemedia.net/BronTaylor. WordPress is installed at http://www.neptunemedia.net/BronTaylor/wordpress.
What I can't figure out after investigating this for over 2 hours today is how does WordPress know which database to use? How does it know to point to dwhittaker-b.db.sonic.net? Before I start creating the blog I need to make sure everything is pointing in the right direction.
Thanks!
***** UPDATE TO MY QUESTION *****
I finally found some information on the WordPress forums. Apparently I'm supposed to edit the wp-config.php file. The detailed explanation of how to do this in located here http://codex.wordpress.org/Editing_wp-c ... e_Settings. I assume that means editing it with a text editor.
I'm very comfortable editing text files. I know Javascript and have taken a C++ course so I don't have a problem doing this. But if this is in fact the only way to set WordPress to point to the correct database, why isn't this an automated step when installing WordPress on my server? I'm sure I'm not the only one with this question. Perhaps I'm missing something?
Also, I notice that someone in this forum suggested you install cPanel for WordPress users. This is highly recommended by WordPress and automates all this database stuff. cPanel is also referred to a lot in Visual Quickstarts Word Press book. You might want to look into intalling cPanel.
Thanks guys!
Host: dwhittaker-b.db.sonic.net
I installed WordPress today and am going through all the settings to create a blog for a client whose web site I created. The test site is located at http://www.neptunemedia.net/BronTaylor. WordPress is installed at http://www.neptunemedia.net/BronTaylor/wordpress.
What I can't figure out after investigating this for over 2 hours today is how does WordPress know which database to use? How does it know to point to dwhittaker-b.db.sonic.net? Before I start creating the blog I need to make sure everything is pointing in the right direction.
Thanks!

***** UPDATE TO MY QUESTION *****
I finally found some information on the WordPress forums. Apparently I'm supposed to edit the wp-config.php file. The detailed explanation of how to do this in located here http://codex.wordpress.org/Editing_wp-c ... e_Settings. I assume that means editing it with a text editor.
I'm very comfortable editing text files. I know Javascript and have taken a C++ course so I don't have a problem doing this. But if this is in fact the only way to set WordPress to point to the correct database, why isn't this an automated step when installing WordPress on my server? I'm sure I'm not the only one with this question. Perhaps I'm missing something?
Also, I notice that someone in this forum suggested you install cPanel for WordPress users. This is highly recommended by WordPress and automates all this database stuff. cPanel is also referred to a lot in Visual Quickstarts Word Press book. You might want to look into intalling cPanel.
Thanks guys!