Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11)' in /var/www/im2to-app/application/libraries/Doctrine/DBAL/Driver/PDOConnection.php:36 Stack trace: #0 /var/www/im2to-app/application/libraries/Doctrine/DBAL/Driver/PDOConnection.php(36): PDO->__construct('mysql:host=loca...', 'imdb', 'im2toebs2016', Array) #1 /var/www/im2to-app/application/libraries/Doctrine/DBAL/Driver/PDOMySql/Driver.php(47): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=loca...', 'imdb', 'im2toebs2016', Array) #2 /var/www/im2to-app/application/libraries/Doctrine/DBAL/Connection.php(303): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'imdb', 'im2toebs2016', Array) #3 /var/www/im2to-app/application/libraries/Doctrine/DBAL/Connection.php(561): Doctrine\DBAL\Connection->connect() #4 /var/www/im2to-app/application/libraries/Doctrine/ORM/Persisters/BasicEntityPersister.php(550): Doctrine\DBAL\Connection->executeQuery('S in /var/www/im2to-app/application/libraries/Doctrine/DBAL/Driver/PDOConnection.php on line 36