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

Discussion in 'Database Discussions' started by Sujoy Dhar, Nov 2, 2016.

  1. Sujoy Dhar

    Sujoy Dhar Member

    Joined:
    Jul 24, 2016
    Messages:
    22
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Now i am in this trouble any one here to solve this :

    mysqlcheck --all-databases -r #repair
    mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory") when trying to connect
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,086
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know the output to /var/lib/mysql/$hostname.err when restarting MySQL on this system?

    Thank you.
     
  3. Sujoy Dhar

    Sujoy Dhar Member

    Joined:
    Jul 24, 2016
    Messages:
    22
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    It was the msql governor error and opened a support ticket and fixed the issue !
     
    cPanelMichael likes this.
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,086
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    To update, CloudLinux has released an update that addresses an issue where MySQL fails to start after updating to cPanel version 60 on CloudLinux 7 servers with MySQL Governor installed:

    Beta: MariaDB and MySQL for MySQL Governor updated

    Thank you.
     
Loading...

Share This Page