ERROR [2] mysqli_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Fatal error in line 4 of file /var/www/vhosts/lidoaltanea.it/httpdocs/includes/mysql_lib.php, PHP 5.6.40-0+deb8u12 (Linux)
This is the debug trace
Error: "mysqli_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)" (error #2). Backtrace: 0: myErrorHandler 1: mysqli_connect (line 4 in /var/www/vhosts/lidoaltanea.it/httpdocs/includes/mysql_lib.php) 2: db_connect (line 69 in /var/www/vhosts/lidoaltanea.it/httpdocs/includes/inc_conn.php) 3: include_once (line 8 in /var/lib/security/mw_portali/scheda.php) 4: include (line 1 in /var/www/vhosts/lidoaltanea.it/httpdocs/scheda.php) Variables in myErrorHandler (): Client IP: 3.235.45.196
Aborting...