Fatal error: Uncaught exception 'Doctrine_Connection_Exception' with message 'PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' in /var/www/library/Doctrine-1.2.3-patched.php:1 Stack trace: #0 /var/www/library/Doctrine-1.2.3-patched.php(1): Doctrine_Connection->connect() #1 /var/www/library/Doctrine-1.2.3-patched.php(1): Doctrine_Connection_Mysql->connect() #2 /var/www/library/Doctrine-1.2.3-patched.php(1): Doctrine_Connection->exec('SET NAMES 'utf8...') #3 /var/www/vhosts/portal-energo.ru/private/application/global.php(111): Doctrine_Connection_Mysql->setCharset('utf8') #4 /var/www/vhosts/portal-energo.ru/private/application/bootstrap.php(3): require('/var/www/vhosts...') #5 /var/www/vhosts/portal-energo.ru/httpdocs/index.php(38): require('/var/www/vhosts...') #6 {main} thrown in /var/www/library/Doctrine-1.2.3-patched.php on line 1