Hi guys,
I've got a bit of an issue here.
I have a VPS that's running on CentOS Linux release 7.9.2009 (Core) and DirectAdmin and CustomBuild 2.
Everything was working fine until yesterday when I started updating some packages. Now I keep getting the error: "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"
This error is a common one, because I found it in the docs and on StackOverflow.
stackoverflow.com
Thing is, these solutions don't seem to work.
I can login on MySQL from the terminal with SSH, but in DirectAdmin I can't access it without keep getting the error.
I've added: socket=/var/lib/mysql/mysql.sock to the /etc/my.cnf file, but this also does not seem to work.
I spend a lot of hours on this issue already, but am stuck at the moment.
Hope on of you guys knows the answer what to do.
Thanks in advance.
I've got a bit of an issue here.
I have a VPS that's running on CentOS Linux release 7.9.2009 (Core) and DirectAdmin and CustomBuild 2.
Everything was working fine until yesterday when I started updating some packages. Now I keep getting the error: "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"
This error is a common one, because I found it in the docs and on StackOverflow.

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I am getting the following error when I try to connect to mysql: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Is there a solution for this error? What might...
Thing is, these solutions don't seem to work.
I can login on MySQL from the terminal with SSH, but in DirectAdmin I can't access it without keep getting the error.
I've added: socket=/var/lib/mysql/mysql.sock to the /etc/my.cnf file, but this also does not seem to work.
I spend a lot of hours on this issue already, but am stuck at the moment.
Hope on of you guys knows the answer what to do.
Thanks in advance.