• 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 to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator t-p

    (@t-p)

    “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: https://codex.www.ads-software.com/Common_WordPress_Errors#Error_Establishing_Database_Connection
    – Also review this tutorial: https://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

    (@bgshap)

    this may sound silly, but I’m viewing my file manager and can’t locate the wp-config.php file

    Moderator t-p

    (@t-p)

    config.php file is located in the root of your WordPress file directory unless it’s moved one directory because www.ads-software.com self-hosted blogs allow you to move your wp-config.php up one level from your blog’s root.

    • This reply was modified 6 years, 9 months ago by t-p.
    Thread Starter bgshap

    (@bgshap)

    can I send a screen shot of the file manager directory?

    Thread Starter bgshap

    (@bgshap)

    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

    (@bgshap)

    it’s all MySql host, database and username

    Moderator t-p

    (@t-p)

    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

    (@bgshap)

    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

    (@t-p)

    If not, ask them what should be the right info in there

    lisa

    (@contentiskey)

    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

    (@bgshap)

    ok I’ll go back to the host again

    Chicagoareafire.com/blog is the site

    Hi,

    I was trying to update an article on my website https://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.