SQLSTATE[HY000] [2002] Connection refused

#0 /var/www/html/apache/magento/store2/includes/src/__default.php(54877): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/html/apache/magento/store2/includes/src/__default.php(55357): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/html/apache/magento/store2/includes/src/__default.php(53564): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /var/www/html/apache/magento/store2/includes/src/__default.php(54620): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /var/www/html/apache/magento/store2/includes/src/__default.php(55465): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /var/www/html/apache/magento/store2/includes/src/__default.php(29768): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /var/www/html/apache/magento/store2/includes/src/__default.php(29709): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 /var/www/html/apache/magento/store2/includes/src/__default.php(12132): Mage_Core_Model_Resource->getConnection('core_write')
#8 /var/www/html/apache/magento/store2/includes/src/__default.php(12162): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 /var/www/html/apache/magento/store2/includes/src/__default.php(12147): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 /var/www/html/apache/magento/store2/includes/src/__default.php(12172): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 /var/www/html/apache/magento/store2/includes/src/__default.php(31798): Mage_Core_Model_Resource_Db_Abstract->getReadConnection()
#12 /var/www/html/apache/magento/store2/includes/src/__default.php(23873): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#13 /var/www/html/apache/magento/store2/includes/src/__default.php(23905): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#14 /var/www/html/apache/magento/store2/app/Mage.php(491): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#15 /var/www/html/apache/magento/store2/includes/src/__default.php(5864): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#16 /var/www/html/apache/magento/store2/includes/src/__default.php(5869): Mage_Core_Model_Abstract->getResourceCollection()
#17 /var/www/html/apache/magento/store2/includes/src/__default.php(20751): Mage_Core_Model_Abstract->getCollection()
#18 /var/www/html/apache/magento/store2/includes/src/__default.php(20609): Mage_Core_Model_App->_initStores()
#19 /var/www/html/apache/magento/store2/includes/src/__default.php(20492): Mage_Core_Model_App->_initCurrentStore('', 'store')
#20 /var/www/html/apache/magento/store2/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#21 /var/www/html/apache/magento/store2/index.php(89): Mage::run('', 'store')
#22 {main}