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!

mysql.sock

Discussion in 'Database Discussion' started by asmithjr, Aug 12, 2015.

  1. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    510
    Likes Received:
    5
    Trophy Points:
    168
    I was doing an update on my machine.
    Now when I try to connect to a website with connection to mysql I get
    Connection Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

    I do a ps -ef and I see mysql is running.

    I do not see a mysql.sock in my /var/lib/mysql folder

    What now?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    510
    Likes Received:
    5
    Trophy Points:
    168
    Update.
    i found innodb_buffer_pool_size=124780544 as the last line in the /etc/my.cnf file and #skip-innodb was commented out.

    I remember we had an issue with a corrupt DB some time back and we do not want innodb active on the server.

    Do you know of a way to prevent innodb from starting or mysql trying to use innodb on this server?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,506
    Likes Received:
    1,964
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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