Title: Error Establishing a Database Connection
Last modified: August 20, 2016

---

# Error Establishing a Database Connection

 *  [Songberries](https://wordpress.org/support/users/songberries/)
 * (@songberries)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-341/)
 * I have a bunch of different problems with my blog right now, but most pressing
   is the fact that I can’t access WordPress. I try to put in my password and the
   screen comes up with these three questions:
    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’m pretty sure I have the right username and password.
    I definitely have the
   correct hostname. I assume my database server is running. . how do I tell if 
   it’s not? Everything looks just like usual there.
 * Any help would be greatly appreciated!!!

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-341/#post-2538326)
 * Check your database credentials with your hosts.
 *  Thread Starter [Songberries](https://wordpress.org/support/users/songberries/)
 * (@songberries)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-341/#post-2538357)
 * I’m sorry, I am such a newbie. Could you explain that further?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-341/#post-2538368)
 * You need to contact your hosts and check that you are using the right host name,
   username & password.
 *  Thread Starter [Songberries](https://wordpress.org/support/users/songberries/)
 * (@songberries)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-341/#post-2538405)
 * Okay, I have them, and they’re all what I thought they were. I’m still confused,
   do I use that username and password on WordPress?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-341/#post-2538412)
 * No – they are added to your wp-config.php file.
 *  Thread Starter [Songberries](https://wordpress.org/support/users/songberries/)
 * (@songberries)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-341/#post-2538422)
 * Okay, so I go into my wp-config.php file and change them?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-341/#post-2538435)
 * Yes.
 *  Thread Starter [Songberries](https://wordpress.org/support/users/songberries/)
 * (@songberries)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-341/#post-2538447)
 * Okay, I changed them. Now when I try to go to songberries.com/wp-login.php I 
   get a screen that says in big bold letters “Error establishing a database connection”.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-341/#post-2538452)
 * You need to contact your hosts and check that you are using the right host name,
   database name, database username & database password.

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

The topic ‘Error Establishing a Database Connection’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-341/#post-2538452)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
