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

---

# Error establishing a database connection

 *  Resolved [codenamefish](https://wordpress.org/support/users/codenamefish/)
 * (@codenamefish)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-243/)
 * Hello, today it just happened and i just can’t get any clue about it, error: **
   Error establishing a database connection**. Built this blog like 1 month ago 
   and no problem since then, yesterday i even updated it and there were no problems.
   Today when i woke up i saw the error and started checking wp-config file, settings
   are all correct, no changes but still blog doesn’t work, i even built a small
   php file that checks the connection to the database and it told me: connection
   established. You can check the error here: [ Cars 321
    Please need a help hand
   here or i’m ruined.

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

 *  [Kapil Chugh](https://wordpress.org/support/users/kapilchugh/)
 * (@kapilchugh)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-243/#post-1723542)
 * didn’t find any error.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-243/#post-1723552)
 * to start with, try:
 * 1. checking with your server for any problems at their end.
    2. checking your
   wp-config.php file to make sure the domain info there is current and valid. 3.
   If you have access to your database, in the wp_options table, make sure ‘siteurl’(
   should be record 2)is set to the correct domain.
 * **Backup your DB before touching it **

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

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-243/#post-1723552)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
