The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MySQL goes down everyday

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

  1. Deker

    Deker Well-Known Member

    Joined:
    Feb 15, 2011
    Messages:
    79
    Likes Received:
    1
    Trophy Points:
    8
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    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.
     
  3. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
Loading...

Share This Page