object(PDOException)#4 (7) { ["message:protected"]=> string(107) "SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(87) "/srv/d_dvsolutions/www/www.dvsolutions.fr/htdocs/core/common/class/db/pdo/connector.php" ["line:protected"]=> int(82) ["trace:private"]=> array(5) { [0]=> array(6) { ["file"]=> string(87) "/srv/d_dvsolutions/www/www.dvsolutions.fr/htdocs/core/common/class/db/pdo/connector.php" ["line"]=> int(82) ["function"]=> string(11) "__construct" ["class"]=> string(3) "PDO" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> string(42) "mysql:host=localhost;dbname=db_dvsolutions" [1]=> string(14) "db_dvsolutions" [2]=> string(8) "Kf8xAB4H" } } [1]=> array(6) { ["file"]=> string(63) "/srv/d_dvsolutions/www/www.dvsolutions.fr/htdocs/core/slash.php" ["line"]=> int(167) ["function"]=> string(7) "connect" ["class"]=> string(12) "PDOConnector" ["type"]=> string(2) "->" ["args"]=> array(5) { [0]=> &string(9) "localhost" [1]=> &string(14) "db_dvsolutions" [2]=> &string(14) "db_dvsolutions" [3]=> &string(8) "Kf8xAB4H" [4]=> &string(3) "sl_" } } [2]=> array(6) { ["file"]=> string(63) "/srv/d_dvsolutions/www/www.dvsolutions.fr/htdocs/core/slash.php" ["line"]=> int(109) ["function"]=> string(7) "connect" ["class"]=> string(5) "Slash" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [3]=> array(6) { ["file"]=> string(63) "/srv/d_dvsolutions/www/www.dvsolutions.fr/htdocs/core/slash.php" ["line"]=> int(415) ["function"]=> string(10) "initialize" ["class"]=> string(5) "Slash" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [4]=> array(6) { ["file"]=> string(58) "/srv/d_dvsolutions/www/www.dvsolutions.fr/htdocs/index.php" ["line"]=> int(27) ["function"]=> string(4) "show" ["class"]=> string(5) "Slash" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["errorInfo"]=> NULL }
Database connexion error - ERROR CODE : SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)