Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Intermittent database errors on reseller account

Discussion in 'Database Discussion' started by piersrr, Sep 25, 2014.

  1. piersrr

    piersrr Registered

    Joined:
    Sep 25, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hi there - sorry for newbie post

    I'm running a reseller account, with most of the 30 clients using Wordpress. Recently across all sites I've been getting intermittent "Error establishing database connection" errors on the Wordpress sites, but non-database sites are fine.

    My web host conveniently ignores the problems until they go away, and then says "there isn't a problem your sites are working".

    Is there a way for me to work out what is causing this? MySQL logs or something? Could it be the sheer number of Wordpress sites using the same localhost MySQL? It's probably on a shared server, so could it be another website/user hogging MySQL bandwidth (if that's a thing)?

    Thanks in advance for any suggestions...
     
  2. server9host

    server9host Well-Known Member

    Joined:
    Sep 18, 2013
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    "Error establishing database connection" this error come when your server mysql service was stuck or you use wrong database credential . For wordpress you get database credential in wp-config.php file. Please check credential is correct or not.

    You also check log for your site from error_log file.

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,827
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    It's difficult to troubleshoot this type of issue without root access to the server. It seems like the MySQL server itself is having trouble handling the database connections, so you may need to address this further with your provider by having them review the MySQL error log on the system.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice