Magento Forum

SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (11)
 
cadoworld
Jr. Member
 
Total Posts:  27
Joined:  2008-10-12
 

Hi,
I ve just update with the new upgrade but after running more or less well - it break down again with no access back end from end

front end :
SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (11)
Trace:
#0 /home/glasspeb/domains/glasspebbles.co.uk/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(188): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /home/glasspeb/domains/glasspebbles.co.uk/public_html/lib/Zend/Db/Adapter/Abstract.php(441): Varien_Db_Adapter_Pdo_Mysql->_connect()
#2 /home/glasspeb/domains/glasspebbles.co.uk/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(230): Zend_Db_Adapter_Abstract->query(’SET NAMES utf8’, Array)
#3 /home/glasspeb/domains/glasspebbles.co.uk/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(258): Zend_Db_Adapter_Pdo_Abstract->query(’SET NAMES utf8’, Array)
#4 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/code/core/Mage/Core/Model/Resource/Type/Db/Pdo/Mysql.php(45): Varien_Db_Adapter_Pdo_Mysql->query(’SET NAMES utf8’)
#5 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/code/core/Mage/Core/Model/Resource.php(83): Mage_Core_Model_Resource_Type_Db_Pdo_Mysql->getConnection(Object(Mage_Core_Model_Config_Element))
#6 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(248): Mage_Core_Model_Resource->getConnection(’core_read’)
#7 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(263): Mage_Core_Model_Mysql4_Abstract->_getConnection(’read’)
#8 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(283): Mage_Core_Model_Mysql4_Abstract->_getReadAdapter()
#9 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/code/core/Mage/Core/Model/Mysql4/Collection/Abstract.php(68): Mage_Core_Model_Mysql4_Abstract->getReadConnection()
#10 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/code/core/Mage/Core/Model/Config.php(790): Mage_Core_Model_Mysql4_Collection_Abstract->__construct(Object(Mage_Core_Model_Mysql4_Website))
#11 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/code/core/Mage/Core/Model/Config.php(832): Mage_Core_Model_Config->getModelInstance(’core_mysql4/web...’, Object(Mage_Core_Model_Mysql4_Website))
#12 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/Mage.php(345): Mage_Core_Model_Config->getResourceModelInstance(’core/website_co...’, Object(Mage_Core_Model_Mysql4_Website))
#13 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/code/core/Mage/Core/Model/Abstract.php(200): Mage::getResourceModel(’core/website_co...’, Object(Mage_Core_Model_Mysql4_Website))
#14 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/code/core/Mage/Core/Model/Abstract.php(205): Mage_Core_Model_Abstract->getResourceCollection()
#15 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/code/core/Mage/Core/Model/App.php(370): Mage_Core_Model_Abstract->getCollection()
#16 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/code/core/Mage/Core/Model/App.php(244): Mage_Core_Model_App->_initStores()
#17 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/Mage.php(427): Mage_Core_Model_App->init(’’, ‘store’, Array)
#18 /home/glasspeb/domains/glasspebbles.co.uk/public_html/app/Mage.php(446): Mage::app(’’, ‘store’, Array)
#19 /home/glasspeb/domains/glasspebbles.co.uk/public_html/index.php(52): Mage::run()
#20 {main}

Don’t really know what happen with magento but it is really annoying ---
please let me know what to do?

PS : I was in admin working on the permission and role when this happen

 
Magento Community Magento Community
Magento Community
Magento Community
 
Chris Nudd
Jr. Member
 
Total Posts:  28
Joined:  2008-05-17
 

I deleted a store and am getting something similar. Any suggestions?

a:2:{i:0;s:36:"pdo_mysql extension is not installed";i:1;s:1542:"#0 /home1/posdirec/public_html/store/lib/Zend/Db/Adapter/Abstract.php(441): Varien_Db_Adapter_Pdo_Mysql->_connect()
#1 /home1/posdirec/public_html/store/lib/Zend/Db/Adapter/Pdo/Abstract.php(230): Zend_Db_Adapter_Abstract->query(’SET NAMES utf8’, Array)
#2 /home1/posdirec/public_html/store/lib/Varien/Db/Adapter/Pdo/Mysql.php(258): Zend_Db_Adapter_Pdo_Abstract->query(’SET NAMES utf8’, Array)
#3 /home1/posdirec/public_html/store/app/code/core/Mage/Core/Model/Resource/Type/Db/Pdo/Mysql.php(45): Varien_Db_Adapter_Pdo_Mysql->query(’SET NAMES utf8’)
#4 /home1/posdirec/public_html/store/app/code/core/Mage/Core/Model/Resource.php(83): Mage_Core_Model_Resource_Type_Db_Pdo_Mysql->getConnection(Object(Mage_Core_Model_Config_Element))
#5 /home1/posdirec/public_html/store/app/code/core/Mage/Core/Model/Resource/Setup.php(62): Mage_Core_Model_Resource->getConnection(’core_setup’)
#6 /home1/posdirec/public_html/store/app/code/core/Mage/Core/Model/Resource/Setup.php(120): Mage_Core_Model_Resource_Setup->__construct(’core_setup’)
#7 /home1/posdirec/public_html/store/app/code/core/Mage/Core/Model/Config.php(215): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#8 /home1/posdirec/public_html/store/app/code/core/Mage/Core/Model/App.php(241): Mage_Core_Model_Config->init(Array)
#9 /home1/posdirec/public_html/store/app/Mage.php(427): Mage_Core_Model_App->init(’’, ‘store’, Array)
#10 /home1/posdirec/public_html/store/app/Mage.php(446): Mage::app(’’, ‘store’, Array)
#11 /home1/posdirec/public_html/store/index.php(52): Mage::run()
#12 {main}”;}

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top