Title: error establishing database
Last modified: August 19, 2016

---

# error establishing database

 *  [the-vagrant](https://wordpress.org/support/users/the-vagrant/)
 * (@the-vagrant)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-database/)
 * for [moronic expletive deleted] sake ive spent numerous days, browsing through
   the network and trying all sorts of crazy [moronic expletive deleted] but none
   of it works. I tried both xampp and wamp. nothing. i looked through numerous 
   ideas and solutions-nothing. Changing the “l” to capital “L” in localhost, adding
   random lines in the wp-db.php and so on. and still
 * > 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?
   > If you’re unsure what these terms mean you should probably contact your host.
   > If you still need help you can always visit the WordPress Support Forums.
 * when i manually create the wp-config.php i get
 * > Error establishing a database connection
 * so honestly is there a solution that makes any sort of logical sense or is it
   time to forget about wordpress and look for other solutions? thanks!

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

 *  [Jeremy Clark](https://wordpress.org/support/users/jeremyclark13/)
 * (@jeremyclark13)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-database/#post-874296)
 * Here are some docs about installing wordpress localy.
    [http://codex.wordpress.org/Installing_WordPress#Installing_WordPress_on_your_own_Computer](http://codex.wordpress.org/Installing_WordPress#Installing_WordPress_on_your_own_Computer)
 * This is the guide specifically for xampp
    [http://www.tamba2.org.uk/wordpress/xampp/](http://www.tamba2.org.uk/wordpress/xampp/)
 *  [dailyearner](https://wordpress.org/support/users/dailyearner/)
 * (@dailyearner)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-database/#post-874298)
 * i met the some problem
 *  [Jeremy Clark](https://wordpress.org/support/users/jeremyclark13/)
 * (@jeremyclark13)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-database/#post-874300)
 * The same docs should help you.
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-database/#post-874302)
 * > so honestly is there a solution that makes any sort of logical sense or is 
   > it time to forget about wordpress and look for other solutions? thanks!
 * I think it’s time you move on. The error is straightforward and 99% of time it
   is user error – plus you didn’t read the docs…so.

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

The topic ‘error establishing database’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 4 participants
 * Last reply from: [Samuel B](https://wordpress.org/support/users/samboll/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-database/#post-874302)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
