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!

MySQL goes down everyday

Discussion in 'Database Discussion' started by Deker, Jun 22, 2014.

  1. Deker

    Deker Well-Known Member

    Feb 15, 2011
    Likes Received:
    Trophy Points:
    Hey Guys,
    Some of our customers reported that they are getting database errors such as "The MySQL server is currently offline" or "Database error The Database has encountered a problem" several times a day.
    The issue resolves automatically after a few minutes. but it come back again after a while.
    Please let me know what is causing this issue and how do I fix this?
    We use cpanel/WHM and didn't change anything on the server recently (execpt cpanel automatic updates)

    Your help will be appreciated
    #1 Deker, Jun 22, 2014
    Last edited: Jun 22, 2014
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    I recommend reviewing the MySQL error log (/var/lib/mysql/$hostname.err) and searching for the times MySQL has failed to see if there is any particular output that could help explain why it failed.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. storminternet

    storminternet Well-Known Member

    Nov 2, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    If this error is specific to some of the users only then I doubt that it is mysql problem. Some of the applications might be exceeding mysql_connect time or wait_timeout in php.ini, my.cnf respectively.

    Try to increase those values and test your applications. If the problem is still there then I would recommend you to optimize your mysql configuration.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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