在我的网站上处理您的请求时出错,有人帮我解决了这个问题吗?
a:4:{i:0;s:73:"SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111)";i:1;s:3543:"#0 /home/riotjeans_prod/deploy/releases/20150227123830/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /home/riotjeans_prod/deploy/releases/20150227123830/lib/Varien/Db/Adapter/Pdo/Mysql.php(320): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /home/riotjeans_prod/deploy/releases/20150227123830/lib/Zend/Db/Adapter/Abstract.php(459): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /home/riotjeans_prod/deploy/releases/20150227123830/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /home/riotjeans_prod/deploy/releases/20150227123830/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /home/riotjeans_prod/deploy/releases/20150227123830/app/code/core/Mage/Core/Model/Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /home/riotjeans_prod/deploy/releases/20150227123830/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 /home/riotjeans_prod/deploy/releases/20150227123830/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')
#8 /home/riotjeans_prod/deploy/releases/20150227123830/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 /home/riotjeans_prod/deploy/releases/20150227123830/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 /home/riotjeans_prod/deploy/releases/20150227123830/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(360): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 /home/riotjeans_prod/deploy/releases/20150227123830/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(134): Mage_Core_Model_Resource_Db_Abstract->getReadConnection()
#12 /home/riotjeans_prod/deploy/releases/20150227123830/app/code/core/Mage/Core/Model/Config.php(1348): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#13 /home/riotjeans_prod/deploy/releases/20150227123830/app/code/core/Mage/Core/Model/Config.php(1380): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#14 /home/riotjeans_prod/deploy/releases/20150227123830/app/Mage.php(491): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#15 /home/riotjeans_prod/deploy/releases/20150227123830/app/code/core/Mage/Core/Model/Abstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#16 /home/riotjeans_prod/deploy/releases/20150227123830/app/code/core/Mage/Core/Model/Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#17 /home/riotjeans_prod/deploy/releases/20150227123830/app/code/core/Mage/Core/Model/App.php(608): Mage_Core_Model_Abstract->getCollection()
#18 /home/riotjeans_prod/deploy/releases/20150227123830/app/code/core/Mage/Core/Model/App.php(466): Mage_Core_Model_App->_initStores()
#19 /home/riotjeans_prod/deploy/releases/20150227123830/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Model_App->_initCurrentStore('', 'store')
#20 /home/riotjeans_prod/deploy/releases/20150227123830/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#21 /home/riotjeans_prod/deploy/releases/20150227123830/index.php(98): Mage::run('', 'store')
#22 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";}
答案 0 :(得分:0)
选项:1 检查你的mysql服务器是否正常工作。这个错误是它无法连接到mysql。
选项2:
检查<span class="average">8.2</span>
文件中的数据库配置。
local.xml
选项3 为mysql连接创建独立的连接文件
Location: app/etc/local.xml
答案 1 :(得分:0)
清除所有可能的缓存并删除var / cache。检查U是否可以使用local.xml中的数据从命令行进行连接。
答案 2 :(得分:0)
嗨感谢您的帮助我解决了这个问题在服务器app \ code \ core \ Mage \ Core \ Model \ Session \ Abstract \ Varien.php中错过了这个文件,但现在我正面对我的网站只显示标题部分可以访问riotjeans .COM