Title: Error establishing database connection problem
Last modified: August 31, 2016

---

# Error establishing database connection problem

 *  Resolved [SickSquirrel](https://wordpress.org/support/users/sicksquirrel/)
 * (@sicksquirrel)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-database-connection-problem/)
 * New blog. Keeps giving the above error. I double-checked my config file. I tried
   with localhost and hostiingdb.myhost.com . The password being mine, the user,
   is right.
 * Error logs from the host show the SQL-injection attempt error, no others
 * My host isn’t always quick to respond so I thought I’d try here first.

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

 *  [jon](https://wordpress.org/support/users/adiant/)
 * (@adiant)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-database-connection-problem/#post-7116161)
 * Most common error I’ve seen is not realizing that the user/password required 
   is the MySQL database user, not the Linux user or the Control Panel user or the
   WordPress user.
 * Most sites are localhost, but some are not, so you should check that out with
   your web host’s documentation.
 *  Thread Starter [SickSquirrel](https://wordpress.org/support/users/sicksquirrel/)
 * (@sicksquirrel)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-database-connection-problem/#post-7116182)
 * The only pass I have is db. WordPress not installed yet and I’m using Windows
   or iOS.
 * I checked ten blogs and all use hostingdb.*
 *  [jon](https://wordpress.org/support/users/adiant/)
 * (@adiant)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-database-connection-problem/#post-7116196)
 * No other ideas, so best I can suggest is going through the official documentation
   in the Codex on the subject:
    [http://codex.wordpress.org/Common_WordPress_Errors#Error_Establishing_Database_Connection](http://codex.wordpress.org/Common_WordPress_Errors#Error_Establishing_Database_Connection)
 *  Thread Starter [SickSquirrel](https://wordpress.org/support/users/sicksquirrel/)
 * (@sicksquirrel)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-database-connection-problem/#post-7116305)
 * Host finally got back to me. They reinstalled and all is good. They never tell
   me what was causing errors. The odd errors in the log don’t make sense

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

The topic ‘Error establishing database connection problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [SickSquirrel](https://wordpress.org/support/users/sicksquirrel/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-database-connection-problem/#post-7116305)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
