Title: database error connection issues
Last modified: February 28, 2018

---

# database error connection issues

 *  [bgshap](https://wordpress.org/support/users/bgshap/)
 * (@bgshap)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/database-error-connection-issues/)
 * my site has been up for years and running well. As of a week ago, I keep losing
   the connection while trying to login as admin, while posting … and while viewing
   the blog. Readers have complained as well. My hosting company (JustHost) says
   they can not replicate the errors, all runs fine on their end. All they can say
   is too much data and I need a private server.
 * Does this make sense? Works fine one day then all of a sudden connection and 
   database errors?
 * Error establishing a database connection
    connection lost
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatabase-error-connection-issues%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/database-error-connection-issues/#post-10024737)
 * “Error establishing a database connection” means that there is a problem with
   the connection to your database
    – a problem with the credentials stored in the
   wp-config.php file not matching what mysql expects. – Try reviewing the following
   codex for some guidance: [http://codex.wordpress.org/Common_WordPress_Errors#Error_Establishing_Database_Connection](http://codex.wordpress.org/Common_WordPress_Errors#Error_Establishing_Database_Connection)–
   Also review this tutorial: [http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/](http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/)–
   If the error is intermittent then it’s your server. What’s happening is that 
   the web server and/or the database server are gettign overloaded and the connection
   is droping out or is refused for a short time. That gives you the database error
   as the website can’t connect to the database. To fix this, you’ll need to talk
   to your hosting company as they are the only ones that can do anything about 
   hardware issues like this.
 *  Thread Starter [bgshap](https://wordpress.org/support/users/bgshap/)
 * (@bgshap)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/database-error-connection-issues/#post-10025111)
 * this may sound silly, but I’m viewing my file manager and can’t locate the wp-
   config.php file
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/database-error-connection-issues/#post-10025146)
 * config.php file is located in the root of your WordPress file directory unless
   it’s moved one directory because WordPress.org self-hosted blogs allow you to
   move your wp-config.php up one level from your blog’s root.
    -  This reply was modified 8 years, 3 months ago by [t-p](https://wordpress.org/support/users/t-p/).
 *  Thread Starter [bgshap](https://wordpress.org/support/users/bgshap/)
 * (@bgshap)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/database-error-connection-issues/#post-10025222)
 * can I send a screen shot of the file manager directory?
 *  Thread Starter [bgshap](https://wordpress.org/support/users/bgshap/)
 * (@bgshap)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/database-error-connection-issues/#post-10025274)
 * ok I found it. It seems buried. After looking at the links you provided, shouldn’t
   the username and password in the config be my Admin data? Or is is host data?
   I’ve never altered it but it’s not recognizable to me.
 * I am able to login and have been for years. I’m confused.
 *  Thread Starter [bgshap](https://wordpress.org/support/users/bgshap/)
 * (@bgshap)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/database-error-connection-issues/#post-10025276)
 * it’s all MySql host, database and username
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/database-error-connection-issues/#post-10025286)
 * If you think all the info is correct, the consider getting in touch with your
   hosting provider and ask them whats going on.
 *  Thread Starter [bgshap](https://wordpress.org/support/users/bgshap/)
 * (@bgshap)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/database-error-connection-issues/#post-10025291)
 * I don’t know if it’s right. Should my Admin username and password be there or
   their stuff like ‘DB_USER’, ‘chicag26_wrdp1’
 * that’s not my login
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/database-error-connection-issues/#post-10025342)
 * If not, ask them what should be the right info in there
 *  [lisa](https://wordpress.org/support/users/contentiskey/)
 * (@contentiskey)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/database-error-connection-issues/#post-10025346)
 * wp-config.php file does not use the same login details for your WordPress dashboard
 * the wp-config.php uses specific details to connect to the database
 * your webhosting vendor will be best source to get help locating the correct information
   about your database that contains all of the content for your website.
 *  Thread Starter [bgshap](https://wordpress.org/support/users/bgshap/)
 * (@bgshap)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/database-error-connection-issues/#post-10025480)
 * ok I’ll go back to the host again
 * Chicagoareafire.com/blog is the site
 *  [zabarvers](https://wordpress.org/support/users/zabarvers/)
 * (@zabarvers)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/database-error-connection-issues/#post-10387193)
 * Hi,
 * I was trying to update an article on my website [http://www.kareron.com](http://www.kareron.com)
   and I got this error: Error establishing a database connection. I know that I
   perhaps should edit my wp-config.php but I don’t know how I can access to it?
   
   I don’t know what to do, thanks in advance,
 * Isabelle Arvers

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

The topic ‘database error connection issues’ is closed to new replies.

## Tags

 * [Connection lost](https://wordpress.org/support/topic-tag/connection-lost/)
 * [Error establishing a database connection](https://wordpress.org/support/topic-tag/error-establishing-a-database-connection/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 4 participants
 * Last reply from: [zabarvers](https://wordpress.org/support/users/zabarvers/)
 * Last activity: [7 years, 12 months ago](https://wordpress.org/support/topic/database-error-connection-issues/#post-10387193)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
