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

#0 /media/data/www/magento_versions/4.0.0.0/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /media/data/www/magento_versions/4.0.0.0/lib/Varien/Db/Adapter/Pdo/Mysql.php(251): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /media/data/www/magento_versions/4.0.0.0/lib/Zend/Db/Adapter/Abstract.php(448): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /media/data/www/magento_versions/4.0.0.0/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /media/data/www/magento_versions/4.0.0.0/lib/Varien/Db/Adapter/Pdo/Mysql.php(333): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /media/data/www/magento_versions/4.0.0.0/app/code/core/Mage/Core/Model/Resource/Type/Db/Pdo/Mysql.php(45): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /media/data/www/magento_versions/4.0.0.0/app/code/core/Mage/Core/Model/Resource.php(93): Mage_Core_Model_Resource_Type_Db_Pdo_Mysql->getConnection(Object(Mage_Core_Model_Config_Element))
#7 /media/data/www/magento_versions/4.0.0.0/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(275): Mage_Core_Model_Resource->getConnection('core_read')
#8 /media/data/www/magento_versions/4.0.0.0/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(290): Mage_Core_Model_Mysql4_Abstract->_getConnection('read')
#9 /media/data/www/magento_versions/4.0.0.0/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(310): Mage_Core_Model_Mysql4_Abstract->_getReadAdapter()
#10 /media/data/www/magento_versions/4.0.0.0/app/code/core/Mage/Core/Model/Mysql4/Collection/Abstract.php(69): Mage_Core_Model_Mysql4_Abstract->getReadConnection()
#11 /media/data/www/magento_versions/4.0.0.0/app/code/core/Mage/Core/Model/Config.php(1206): Mage_Core_Model_Mysql4_Collection_Abstract->__construct(Object(Mage_Core_Model_Mysql4_Website))
#12 /media/data/www/magento_versions/4.0.0.0/app/code/core/Mage/Core/Model/Config.php(1239): Mage_Core_Model_Config->getModelInstance('core_mysql4/web...', Object(Mage_Core_Model_Mysql4_Website))
#13 /media/data/www/magento_versions/4.0.0.0/app/Mage.php(460): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Mysql4_Website))
#14 /media/data/www/magento_versions/4.0.0.0/app/code/core/Mage/Core/Model/Abstract.php(207): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Mysql4_Website))
#15 /media/data/www/magento_versions/4.0.0.0/app/code/core/Mage/Core/Model/Abstract.php(212): Mage_Core_Model_Abstract->getResourceCollection()
#16 /media/data/www/magento_versions/4.0.0.0/app/code/core/Mage/Core/Model/App.php(532): Mage_Core_Model_Abstract->getCollection()
#17 /media/data/www/magento_versions/4.0.0.0/app/code/core/Mage/Core/Model/App.php(393): Mage_Core_Model_App->_initStores()
#18 /media/data/www/magento_versions/4.0.0.0/app/code/core/Mage/Core/Model/App.php(299): Mage_Core_Model_App->_initCurrentStore('en', 'store')
#19 /media/data/www/magento_versions/4.0.0.0/app/Mage.php(596): Mage_Core_Model_App->run(Array)
#20 /media/data/www/magento_versions/4.0.0.0/index.php(92): Mage::run('en', 'store')
#21 {main}