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.

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

Discussion in 'Database Discussions' 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:
    36,294
    Likes Received:
    1,209
    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.
     
  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:
    36,294
    Likes Received:
    1,209
    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.
     
Loading...

Share This Page