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

#0 /var/www/magento3/includes/src/__default.php(54207): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/magento3/includes/src/__default.php(54680): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/magento3/includes/src/__default.php(52894): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /var/www/magento3/includes/src/__default.php(53950): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /var/www/magento3/includes/src/__default.php(54786): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /var/www/magento3/includes/src/__default.php(29455): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /var/www/magento3/includes/src/__default.php(29396): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 /var/www/magento3/includes/src/__default.php(11833): Mage_Core_Model_Resource->getConnection('core_write')
#8 /var/www/magento3/includes/src/__default.php(11863): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 /var/www/magento3/includes/src/__default.php(11848): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 /var/www/magento3/includes/src/__default.php(11873): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 /var/www/magento3/includes/src/__default.php(31493): Mage_Core_Model_Resource_Db_Abstract->getReadConnection()
#12 /var/www/magento3/includes/src/__default.php(23586): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#13 /var/www/magento3/includes/src/__default.php(23618): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#14 /var/www/magento3/app/Mage.php(490): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#15 /var/www/magento3/includes/src/__default.php(5650): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#16 /var/www/magento3/includes/src/__default.php(5655): Mage_Core_Model_Abstract->getResourceCollection()
#17 /var/www/magento3/includes/src/__default.php(20464): Mage_Core_Model_Abstract->getCollection()
#18 /var/www/magento3/includes/src/__default.php(20322): Mage_Core_Model_App->_initStores()
#19 /var/www/magento3/includes/src/__default.php(20205): Mage_Core_Model_App->_initCurrentStore('', 'store')
#20 /var/www/magento3/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#21 /var/www/magento3/index.php(126): Mage::run('', 'store')
#22 {main}