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

---

# Error establishing a database connection

 *  Resolved [xportrecords@gmail.com](https://wordpress.org/support/users/xportrecordsgmailcom/)
 * (@xportrecordsgmailcom)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-403/)
 * I went into my site and I could not enter the page, gave this error
    Error establishing
   a database connection can someone help me? [](http://www.xportrecords.com)

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

 *  [Lorenzo Orlando Caum](https://wordpress.org/support/users/lorenzocaum/)
 * (@lorenzocaum)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-403/#post-3004266)
 * Double-check the credentials in your wp-config.php file.
 * This is usually in the site root.
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-403/#post-3004279)
 * Recheck your database info in wp-config.php file.
 *  Thread Starter [xportrecords@gmail.com](https://wordpress.org/support/users/xportrecordsgmailcom/)
 * (@xportrecordsgmailcom)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-403/#post-3004282)
 * ok, but now I have another problem. I enter the home site and then other pages
   do not let me enter, me error 404
    [](http://www.xportrecords.com)
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-403/#post-3004285)
 * Post your url so we can see what the problem is.
 *  Thread Starter [xportrecords@gmail.com](https://wordpress.org/support/users/xportrecordsgmailcom/)
 * (@xportrecordsgmailcom)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-403/#post-3004288)
 * ok
    [](http://www.xportrecords.com)
 *  Thread Starter [xportrecords@gmail.com](https://wordpress.org/support/users/xportrecordsgmailcom/)
 * (@xportrecordsgmailcom)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-403/#post-3004289)
 * [http://www.xportrecords.com](http://www.xportrecords.com)
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-403/#post-3004294)
 * Reset you permalinks in Settings>>>>Permalinks
 *  Thread Starter [xportrecords@gmail.com](https://wordpress.org/support/users/xportrecordsgmailcom/)
 * (@xportrecordsgmailcom)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-403/#post-3004297)
 * It was in the permalinks and later by default, thank you very much for the information
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-403/#post-3004300)
 * You are welcome.
 *  [adewalelagos](https://wordpress.org/support/users/adewalelagos/)
 * (@adewalelagos)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-403/#post-3004394)
 * don’t know if it’s ok i join this thread, am also getting the error establishing
   database connection with my site hosted with bluehost even though the credentials
   of my wp-config is correct i still get the error establishing database connection.
 *  [BH_WP_Guru](https://wordpress.org/support/users/bh_wp_guru/)
 * (@bh_wp_guru)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-403/#post-3004399)
 * [@adewalelagos](https://wordpress.org/support/users/adewalelagos/): Go ahead 
   and try everything you can see written above, but if it doesn’t help then you
   should make your own new topic instead of writing on this ‘resolved’ one.
 *  [photochoppy](https://wordpress.org/support/users/photochoppy/)
 * (@photochoppy)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-403/#post-3004459)
 * Hi,
    I got the same error. I call the hosting support and I got this «Upon reviewing
   your account, I show that these addresses are different because you have a redirect
   in your .htaccess file for premiumvillacollection.com that leads elswhere. You
   will need to remove this redirect. Additionally, the database error is appearing
   because the connection string does not contain the correct log in credentials
   for the database. You will need to locate this information and add the updated
   credentials. » I checked the wp-config.php file and the record are ok. Can anyone
   tell me what do exactly? thank you

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

The topic ‘Error establishing a database connection’ 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/)
 * 12 replies
 * 6 participants
 * Last reply from: [photochoppy](https://wordpress.org/support/users/photochoppy/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-403/#post-3004459)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
