cancel
Showing results for 
Search instead for 
Did you mean: 

Strange behavior - Can't connect to MySQL server

Strange behavior - Can't connect to MySQL server

Since last week my magento installation stopped working.

I tried cleaning cache, setting correct right on several folders, no luck so far.

I haven't made any changes in the software, the only thing I did was update the homepage 2 weeks before (I replaced an image), so that hardly can be the issue I guess.

 

MySQL seems to be running although I do get an error.

Also no new error reports are being written to /var/report I'm kinda lost.

Can anyone help me?

 

Thanks!!

 

a:4:{i:0;s:85:"SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'mysql796int.pem.kpn.net' (4)";i:1;s:3430:"#0 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/lib/Varien/Db/Adapter/Pdo/Mysql.php(300): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/lib/Zend/Db/Adapter/Abstract.php(459): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/lib/Varien/Db/Adapter/Pdo/Mysql.php(389): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/code/core/Mage/Core/Model/Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_read')
#8 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getConnection('read')
#9 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(355): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#10 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(134): Mage_Core_Model_Resource_Db_Abstract->getReadConnection()
#11 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/code/core/Mage/Core/Model/Config.php(1350): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#12 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/code/core/Mage/Core/Model/Config.php(1386): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#13 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/Mage.php(460): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#14 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/code/core/Mage/Core/Model/Abstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#15 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/code/core/Mage/Core/Model/Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#16 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/code/core/Mage/Core/Model/App.php(602): Mage_Core_Model_Abstract->getCollection()
#17 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/code/core/Mage/Core/Model/App.php(460): Mage_Core_Model_App->_initStores()
#18 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/code/core/Mage/Core/Model/App.php(344): Mage_Core_Model_App->_initCurrentStore('', 'store')
#19 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/app/Mage.php(640): Mage_Core_Model_App->run(Array)
#20 /usr/local/pem/vhosts/122530/webspace/httpdocs/webshop/index.php(80): Mage::run('', 'store')
#21 {main}";s:3:"url";s:94:"/webshop/index.php/catalogsearch/result/index/?cat=16&mm_formaat=54&mode=grid&q=metaalring+wit";s:11:"script_name";s:18:"/webshop/index.php";}

1 REPLY 1

Re: Strange behavior - Can't connect to MySQL server

Are you able to conenct to the server using the command line?