Title: Installation Error &#8211; Really Weird
Last modified: August 19, 2016

---

# Installation Error – Really Weird

 *  [dbergen](https://wordpress.org/support/users/dbergen/)
 * (@dbergen)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/installation-error-really-weird/)
 * Hey, I’m trying to install wordpress but I keep getting this 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?
 * I’ve done it dozens of times before the same way, but this time it didn’t work
   for some reason. I’ve triple checked the config file and it’s all correct.
 * How can I fix it?
 * Thansk

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

 *  [Michael Fields](https://wordpress.org/support/users/mfields/)
 * (@mfields)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/installation-error-really-weird/#post-667234)
 * Are you sure that `localhost` is correct?
    I know that _usually_ it doesn’t need
   to be changed, but there is a very popular hosting company that is very cheap
   that you need to put the actual database address. Just a thought, -Mike
 *  Thread Starter [dbergen](https://wordpress.org/support/users/dbergen/)
 * (@dbergen)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/installation-error-really-weird/#post-667239)
 * Thanks Mike, yeah I’m using Hostgator and it’s localhost, the same as I use for
   all my other sites. Are there any other things that could be causing this?
 * Thanks

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

The topic ‘Installation Error – Really Weird’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [dbergen](https://wordpress.org/support/users/dbergen/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/installation-error-really-weird/#post-667239)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
