Board logo

标题: [求助] 无法连接mysql,请检查mysql是否已启动及用户密码是否设置正确!: [打印本页]

作者: gs925229    时间: 2015-4-15 13:42     标题: 无法连接mysql,请检查mysql是否已启动及用户密码是否设置正确!:

今天上传产品好好的。网站突然打不开了。错误提示:
There has been an error processing your request
SQLSTATE[HY000] [2002] No such file or directory

Trace:
#0 /www/web/necklacestorecn/public_html/lib/Zend/Db/Adapter/Pdo/Mysql.php(109): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /www/web/necklacestorecn/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(320): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /www/web/necklacestorecn/public_html/lib/Zend/Db/Adapter/Abstract.php(460): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /www/web/necklacestorecn/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /www/web/necklacestorecn/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /www/web/necklacestorecn/public_html/app/code/core/Mage/Core/Model/Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /www/web/necklacestorecn/public_html/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 /www/web/necklacestorecn/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')
#8 /www/web/necklacestorecn/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 /www/web/necklacestorecn/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 /www/web/necklacestorecn/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(360): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 /www/web/necklacestorecn/public_html/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(134): Mage_Core_Model_Resource_Db_Abstract->getReadConnection()
#12 /www/web/necklacestorecn/public_html/app/code/core/Mage/Core/Model/Config.php(1348): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#13 /www/web/necklacestorecn/public_html/app/code/core/Mage/Core/Model/Config.php(1380): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#14 /www/web/necklacestorecn/public_html/app/Mage.php(491): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#15 /www/web/necklacestorecn/public_html/app/code/core/Mage/Core/Model/Abstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#16 /www/web/necklacestorecn/public_html/app/code/core/Mage/Core/Model/Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#17 /www/web/necklacestorecn/public_html/app/code/core/Mage/Core/Model/App.php(608): Mage_Core_Model_Abstract->getCollection()
#18 /www/web/necklacestorecn/public_html/app/code/core/Mage/Core/Model/App.php(466): Mage_Core_Model_App->_initStores()
#19 /www/web/necklacestorecn/public_html/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Model_App->_initCurrentStore('', 'store')
#20 /www/web/necklacestorecn/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#21 /www/web/necklacestorecn/public_html/index.php(87): Mage::run('', 'store')
#22 {main}

然后打开 wdcp服务器 ,显示:无法连接mysql,请检查mysql是否已启动及用户密码是否设置正确!:
错误。
作者: gs925229    时间: 2015-4-15 16:22

有人知道吗
作者: ycsd0258    时间: 2015-9-23 00:41

同问   试了12年的帖子内的一个命令  也是不行




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2