Title: Error establishing a database connection
Last modified: August 20, 2016

---

# Error establishing a database connection

 *  [bderam](https://wordpress.org/support/users/bderam/)
 * (@bderam)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-352/)
 * I just completed installing WP 3.3.1 on my client’s server and i got this error
   when I went to the install.php page:
 * 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.
 * Internal Server Error
 * The server encountered an internal error or misconfiguration and was unable to
   complete your request.
 * Please contact the server administrator, [cgiadmin@yourhostingaccount.com](https://wordpress.org/support/topic/error-establishing-a-database-connection-352/cgiadmin@yourhostingaccount.com?output_format=md)
   and inform them of the time the error occurred, and anything you might have done
   that may have caused the error.
 * More information about this error may be available in the server error log.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-352/#post-2587964)
 * Check your database & database user credentials with your hosts.
 *  [wothers](https://wordpress.org/support/users/wothers/)
 * (@wothers)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-352/#post-2588073)
 * Trying to install locally and getting same message. Running Wamp,
    used correct
   username and password, hostname is localhost, Wamp is running – why can’t I connect?
   Tried setting up database and editing config file…dropped database, deleted config
   file and tried usin wp install – 5 min install has become 5 hour waste of time.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-352/#post-2588077)
 * **[@wothers](https://wordpress.org/support/users/wothers/)**: It is impolite 
   to interrupt another poster’s thread. Please post your own topic.

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

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

## Tags

 * [connection error](https://wordpress.org/support/topic-tag/connection-error/)
 * [install.php](https://wordpress.org/support/topic-tag/install-php/)

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
