Title: DB connection
Last modified: August 20, 2016

---

# DB connection

 *  [paulfries](https://wordpress.org/support/users/paulfries/)
 * (@paulfries)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/db-connection/)
 * So I am having an issue connecting to my database. This is a new install.
 * I have spun up two machines. One is the web server, and one is the database backend.
   They can connect via a private network.
 * I can connect to the wordpress database (via the MySQL client) from my web server
   using the username/password I have configured for the wordpress database. However
   when I enter this information into the install.php script, it just immediately
   says that there was a problem connecting to the database.
 * Am I missing something here?
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/db-connection/#post-3285855)
 * – double check your wp-config.php file settings for the database name, database
   username and database password. This is where most errors occur. -Then check 
   that you don’t need to change the database host from “localhost” to something
   else. You can get that info from your hosting provider.
    -Check you have actually
   created a database with the same database name as is in your wp-config.php file.-
   Last, but not least, if all that information is correct your database probably
   has a problem with it, and you may need to contact your hosting provider.
 * There are also many threads on this topic on these forums: [http://wordpress.org/search/Error+establishing+a+database+connection?forums=1](http://wordpress.org/search/Error+establishing+a+database+connection?forums=1)
 *  [texjunkmail](https://wordpress.org/support/users/texjunkmail/)
 * (@texjunkmail)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/db-connection/#post-3285859)
 * I find that I tend to have inexplicable mysql errors on almost every install.
   Sometimes you just have to go ahead and remake the database and redo all the 
   connections, and for some reason it just works out.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘DB connection’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 3 participants
 * Last reply from: [texjunkmail](https://wordpress.org/support/users/texjunkmail/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/db-connection/#post-3285859)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
