Title: &#8220;Error establishing a database connection&#8221; error message&#8230;
Last modified: August 19, 2016

---

# “Error establishing a database connection” error message…

 *  [reviewermag](https://wordpress.org/support/users/reviewermag/)
 * (@reviewermag)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-error-message/)
 * I just uploaded the wordpress 2.7 folder after filling out the config php but
   got this error when I went to /wordpress: “Error establishing a database connection”!
 * HELP!!!

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

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-error-message/#post-1049119)
 * Hi
 * This usually means there is an error in your wp-config.php settings
 * Double check everything. If you are still stuck post the first lines in the file,
   the DB connection info, and also who you host with.
 *  Thread Starter [reviewermag](https://wordpress.org/support/users/reviewermag/)
 * (@reviewermag)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-error-message/#post-1049210)
 * Do you mean repost the config.php file as the “sample” **the way it came downloaded
   first**, re-enter the needed info for username, password and host, etc., then
   save it as wp-config.php?
 * I am not sure which first few lines need to be re-posted…
 * Also, this whole folder was downloaded and used in another domain without problem
   before I tried it on this domain and ran into problems, if that matters.
 *  [figaro](https://wordpress.org/support/users/figaro/)
 * (@figaro)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-error-message/#post-1049211)
 * The following video may help you troubleshoot the problem.
 * [http://educhalk.org/blog/?p=148](http://educhalk.org/blog/?p=148)
 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-error-message/#post-1049219)
 * > I am not sure which first few lines need to be re-posted…
 * Post the first lines from wp-config.php, the “live” version on the new domain,
   the one that WP is using and not succeeding with connecting to the database. 
   Not the sample, not the one from some other domain, the one you are using on 
   the domain that is having problems.
 * If you are using the same wp-config.php on a second domain that you are using
   on some other domain, odds are you need to change the settings, unless the database
   name, database user name, and database user password are identical to the names
   on the other domain, which would not happen very often.
 * If you are not sure of these, go intp phpMyAdmin on the domain you are trying
   to run this on. Look up the exact name of the database and the exact name of 
   the database user, and make sure those are letter for letter identical with what
   is in the wp-config.php file. Unfortunately you can’t see what the password is.
   Do this before you post anything.

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

The topic ‘“Error establishing a database connection” error message…’ is closed 
to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 3 participants
 * Last reply from: [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-error-message/#post-1049219)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
