magento更新产品状态报错

There has been an error processing your request

SQLSTATE[HY000] [2002] �������ӷ���һ��ʱ����û����ȷ�𸴻����ӵ�����û�з�Ӧ�����ӳ���ʧ�ܡ�
SQLSTATE[HY000] [2002] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
Trace:
#0 D:\wamp\www\aa\lib\Zend\Db\Adapter\Pdo\Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 D:\wamp\www\aa\lib\Varien\Db\Adapter\Pdo\Mysql.php(313): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 D:\wamp\www\aa\lib\Zend\Db\Adapter\Abstract.php(459): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 D:\wamp\www\aa\lib\Zend\Db\Adapter\Pdo\Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 D:\wamp\www\aa\lib\Varien\Db\Adapter\Pdo\Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 D:\wamp\www\aa\app\code\core\Mage\Core\Model\Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 D:\wamp\www\aa\app\code\core\Mage\Core\Model\Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 D:\wamp\www\aa\app\code\core\Mage\Core\Model\Resource\Setup.php(141): Mage_Core_Model_Resource->getConnection('core_setup')
#8 D:\wamp\www\aa\app\code\core\Mage\Core\Model\Resource\Setup.php(234): Mage_Core_Model_Resource_Setup->__construct('core_setup')
#9 D:\wamp\www\aa\app\code\core\Mage\Core\Model\App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#10 D:\wamp\www\aa\app\code\core\Mage\Core\Model\App.php(343): Mage_Core_Model_App->_initModules()
#11 D:\wamp\www\aa\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#12 D:\wamp\www\aa\index.php(66): Mage::run('', 'store')
#13 {main}


打开php.ini文件将
pdo_mysql.default_socket=
改为
pdo_mysql.default_socket=/tmp/mysql.sock
重启apache
posted @ 2015-06-11 09:19  Forward1990  阅读(1075)  评论(0编辑  收藏  举报