Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' in /home/tontof/www/tuto/php/examples/pdo_exception.php:4 Stack trace: #0 /home/tontof/www/tuto/php/examples/pdo_exception.php(4): PDO->__construct('mysql:host=loca...', 'user', 'password') #1 {main} thrown in /home/tontof/www/tuto/php/examples/pdo_exception.php on line 4