cancel
Showing results for 
Search instead for 
Did you mean: 

SQLSTATE[HY000] [2003] Can't connect to MySQL server

SQLSTATE[HY000] [2003] Can't connect to MySQL server

Hi,

 

After reinstalling the magento I can't able to connect the database in browser, I can able to connect the DB via server console. I am receiving the below error in browser. Please help me to resolve this.

 

SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'xxx.amazon.com' (13)

#0 /var/www/html/dev/includes/src/__default.php(55590): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/html/dev/includes/src/__default.php(56070): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/html/dev/includes/src/__default.php(54255): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /var/www/html/dev/includes/src/__default.php(55318): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /var/www/html/dev/includes/src/__default.php(56178): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /var/www/html/dev/includes/src/__default.php(30260): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /var/www/html/dev/includes/src/__default.php(30191): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 /var/www/html/dev/includes/src/Amasty_Fpc_Model_Fpc_Front.php(868): Mage_Core_Model_Resource->getConnection('core_read')
#8 /var/www/html/dev/includes/src/Amasty_Fpc_Model_Fpc_Front.php(104): Amasty_Fpc_Model_Fpc_Front->getDbConfig('web/url/use_sto...')
#9 /var/www/html/dev/includes/src/Mage_Core_Model_Cache.php(703): Amasty_Fpc_Model_Fpc_Front->__construct()
#10 /var/www/html/dev/includes/src/Mage_Core_Model_Cache.php(685): Mage_Core_Model_Cache->_getProcessor('Amasty_Fpc_Mode...')
#11 /var/www/html/dev/includes/src/__default.php(20801): Mage_Core_Model_Cache->processRequest()
#12 /var/www/html/dev/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#13 /var/www/html/dev/index.php(103): Mage::run('', 'store')
#14 {main}


Thanks,
Kannan V