Hello everybody,
With the latest update (Cpanel version: 11.44.0 (build 17)) one of my server's began having problem - system could not connect to the mysql.
Also MODSEC:
After investigating with the help of Cpanel, we found that
Quick solution would be add to you /etc/my.cnf:
With the latest update (Cpanel version: 11.44.0 (build 17)) one of my server's began having problem - system could not connect to the mysql.
Code:
Cron <[email protected]> /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache
Error while connecting to MySQL: Cpanel::DBI::Mysql connect('','root',...) failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) at /usr/local/cpanel/Cpanel/Mysql.pm line 140
Code:
/etc/cron.hourly/modsecparse.pl:
DBI connect('modsec:localhost','modsec',...) failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) at /etc/cron.hourly/modsecparse.pl line 20
Unable to connect to mysql database at /etc/cron.hourly/modsecparse.pl line 20.
And openened inquiry (#105565).MySQL no longer automatically re-creates symlink if it's not present.
Quick solution would be add to you /etc/my.cnf:
Or create symlink. Mods, please update this thread. Thanks.[client]
socket=/var/lib/mysql/mysql.sock
Last edited: