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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Database Discussions' 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:
    263
    Likes Received:
    19
    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.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    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.
     
  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