mysqli::mysqli(): (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

mysqli_query() expects parameter 1 to be mysqli, boolean given/sociable/Classes/ErrorHandler.php:35