Title: Database Connection Error
Last modified: August 18, 2016

---

# Database Connection Error

 *  [kishornr](https://wordpress.org/support/users/kishornr/)
 * (@kishornr)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-1-3/)
 * Hi,
    I’m getting the following error, eventhough I’m sure that the dbname,username&
   password is correct. I’m using mysql v3.23.58, Apache/2.0.51 both on the same
   server running on Linux.
 * error……
    Error establishing a database connection This either means that the 
   username and password information in your wp-config.php file is incorrect or 
   we can’t contact the database server at localhost. This could mean your host’s
   database server is down.
 * Are you sure you have the correct username and password?
    Are you sure that you
   have typed the correct hostname? Are you sure that the database server is running?
 * Thanks in advance

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

 *  [rgonzo82](https://wordpress.org/support/users/rgonzo82/)
 * (@rgonzo82)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-1-3/#post-289476)
 * I ran into the same problem as you and I out that I input the db connection details
   in the wrong area. On the wp-config.php file, where it says “define(‘DB_NAME’,‘
   wordpress’); ” I put my username where it says DB_NAME instead of where is says
   wordpress. I did that same thing with all of the fields and I got the same error
   message as you. Once I changed that, I installed it correcly. Hope this helps.
 *  [henkvangurp](https://wordpress.org/support/users/henkvangurp/)
 * (@henkvangurp)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-1-3/#post-289486)
 * I have the same problem, my site has gone bye-bye. All of the files are still
   there and the database is alright.It just seems that the .php files don’t execute.
   All I see, and probably my readers as well, is an error page.
 * Please help!!
 *  [rgonzo82](https://wordpress.org/support/users/rgonzo82/)
 * (@rgonzo82)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-1-3/#post-289512)
 * I’m sorry, I’m no php expert and I just got this wordpress thing working so I
   doubt I’ll be of much help. Did you read my previous post before yours? That 
   was how I solved my problem. Other than that I dunno. Did you double check all
   your db settings and make sure your host supports the minimun reqs for wordpress?

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

The topic ‘Database Connection Error’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: [rgonzo82](https://wordpress.org/support/users/rgonzo82/)
 * Last activity: [20 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-1-3/#post-289512)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
