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!

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Discussion in 'Database Discussion' started by nabil ragoub, Sep 1, 2015.

  1. nabil ragoub

    nabil ragoub Registered

    Joined:
    Sep 1, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    maroc
    cPanel Access Level:
    Root Administrator
    -Please i have big problem, i have this error
    Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

    -and this log from restart mysql from whm

    Code:
    Log Messages
    150901 07:41:43 mysqld_safe mysqld restarted
    150901 07:41:43 mysqld_safe Number of processes running now: 0
    /usr/sbin/mysqld[0x84cbc2]
    /usr/sbin/mysqld[0x857c7a]
    /usr/sbin/mysqld[0x91b362]
    /usr/sbin/mysqld[0x926bd8]
    /usr/sbin/mysqld[0x9266cf]
    /usr/sbin/mysqld[0x883388]
    /usr/sbin/mysqld[0x8d004b]
    /usr/sbin/mysqld[0x8cfb9a]
    150901 7:41:43 [Note] /usr/sbin/mysqld: ready for connections.
    150901 07:41:42 mysqld_safe mysqld restarted
    150901 07:41:42 mysqld_safe Number of processes running now: 0
    /usr/sbin/mysqld[0x84cbc2]
    /usr/sbin/mysqld[0x857c7a]
    /usr/sbin/mysqld[0x91b362]
    /usr/sbin/mysqld[0x926bd8]
    /usr/sbin/mysqld[0x9266cf]
    /usr/sbin/mysqld[0x883388]
    /usr/sbin/mysqld[0x8d004b]
    /usr/sbin/mysqld[0x8cfb9a]
    150901 7:41:42 [Note] /usr/sbin/mysqld: ready for connections.
    
    mysql has failed. Contact your system administrator if the service does not automagically recover.
    
    
     
    #1 nabil ragoub, Sep 1, 2015
    Last edited by a moderator: Sep 1, 2015
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Could you let us know the output from /var/lib/mysql/$hostname.err when restarting MySQL?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. nabil ragoub

    nabil ragoub Registered

    Joined:
    Sep 1, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    maroc
    cPanel Access Level:
    Root Administrator
    Thanks for your response :)
    Please check the attached Zip
    i wait your replay ^^
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Could you post a relevant snippet of the log in CODE tags instead of attaching the log in zip format?

    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