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!

Database error, Can't connect to local MySQL server through socket

Discussion in 'Database Discussion' started by Luis Gil, Feb 13, 2018.

  1. Luis Gil

    Luis Gil Registered

    Joined:
    Feb 6, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
     
  2. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    267
    Likes Received:
    20
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    if you have root access to the server login to the server and check the log file located at /var/lib/mysql to see whats happening exactly.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Yes, as mentioned in the previous post, try restarting MySQL and then monitoring /var/lib/mysql/$hostname.err for any specific error messages.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Luis Gil

    Luis Gil Registered

    Joined:
    Feb 6, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    Thank you so much for your help.
    The problem was fixed.
    Apparently was a problem with dovecot solr
     
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