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 restart problem

Discussion in 'Database Discussions' started by AngelsGrave, Jul 20, 2013.

  1. AngelsGrave

    AngelsGrave Member

    Joined:
    May 11, 2012
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello

    i have a little problem in my Vps
    every few hours the mysql service stopped and all the accounts give ( cannot connect to the database ) and i have to restart the mysql

    also i did put this command in the shell to auto restart the HTTPD

    PHP:
    crontab -e
    PHP:
    */60 * * * * /etc/init.d/httpd restart >/dell/null 2>&1
    is that the reason ... but i guess this problem started before i made this change ... advice please

    Thanks
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    not sure why you would need to restart Apache every hour please explain
     
  3. AngelsGrave

    AngelsGrave Member

    Joined:
    May 11, 2012
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    trying to low the load for a lil bit :$

    anyway i have just remove that now and still with the same problem :(
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The best way to resolve this issue will be to determine why MySQL is failing. Check the MySQL error log (/var/lib/mysql/$hostname.err) the next time MySQL fails to see if you notice any specific error messages.

    Thank you.
     
Loading...

Share This Page