Title: Database connection failed
Last modified: August 21, 2016

---

# Database connection failed

 *  Resolved [phamquyet92](https://wordpress.org/support/users/phamquyet92/)
 * (@phamquyet92)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/database-connection-failed-1/)
 * Hi. This is my first question about websites. I have been trying hard to understand
   how to setup WordPress for my site [http://watchingprice.com](http://watchingprice.com)
   
   I created database, gave it an username and a password. But after filling these
   information into the wp-config.php file, the site always says connection failed.
   I’m very sure that the username and password i entered correctly, but still somehow
   it cannot work.
 * I’d like to ask how to fix this problem?
 * Thank you.

Viewing 1 replies (of 1 total)

 *  Thread Starter [phamquyet92](https://wordpress.org/support/users/phamquyet92/)
 * (@phamquyet92)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/database-connection-failed-1/#post-4926563)
 * Hmm, it was my bad, it didn’t notice that i have to enter the IP address to replace
   the localhost. The problem is resolved now.

Viewing 1 replies (of 1 total)

The topic ‘Database connection failed’ is closed to new replies.

## Tags

 * [connection](https://wordpress.org/support/topic-tag/connection/)
 * [database](https://wordpress.org/support/topic-tag/database/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 1 participant
 * Last reply from: [phamquyet92](https://wordpress.org/support/users/phamquyet92/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/database-connection-failed-1/#post-4926563)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
