Magento错误 - SQLSTATE [HY000] [1045]拒绝用户访问

时间:2014-09-22 16:48:07

标签: magento

我有一个magento网站现场直播并且正在运行,然后我无处可去:

Exception printing is disabled by default for security reasons.

在对该问题进行一些研究之后,我将/ errors目录文件中的文件名:local.xml.sample更改为local.xml,并在标题上面写了以下错误(粘贴在下面)并写在下面粘贴的文本上面。

该网站运行正常,我在从WebShopapps安装新的运送扩展程序后更改了一些运输设置,然后突然发生这种情况。不确定从哪里开始。

跟踪:

#0 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(54845): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(55325): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(53532): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(54588): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(55433): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(29736): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(29677): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(12129): Mage_Core_Model_Resource->getConnection('core_write')
#8 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(12159): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(12144): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(12169): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(31766): Mage_Core_Model_Resource_Db_Abstract->getReadConnection()
#12 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(23841): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#13 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(23873): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#14 /home/eyesocialeyes/public_html/tilebuyersoutlet/app/Mage.php(491): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#15 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(5861): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#16 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(5866): Mage_Core_Model_Abstract->getResourceCollection()
#17 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(20719): Mage_Core_Model_Abstract->getCollection()
#18 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(20577): Mage_Core_Model_App->_initStores()
#19 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(20460): Mage_Core_Model_App->_initCurrentStore('', 'store')
#20 /home/eyesocialeyes/public_html/tilebuyersoutlet/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#21 /home/eyesocialeyes/public_html/tilebuyersoutlet/index.php(87): Mage::run('', 'store')
#22 {main}

1 个答案:

答案 0 :(得分:1)

您安装了一个模块,但没有禁用缓存和编译器。

您需要通过删除所有var/cache/mage--?子文件夹

来手动清除缓存

然后,您需要使用SSH在Magento根文件夹中运行以下命令来禁用编译器:

php shell/compiler.php disable

或者如果您没有SSH访问权限,请找到includes/config.php文件并注释掉以下行,如下所示:

#define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
#define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');

这应该会带来一切。登录,退出,然后返回“管理”面板以完全加载新模块并完成设置。

将编译器禁用,直到您运行了几天而没有发生任何事故。并非所有模块都与Compiler Kludge兼容。