我使用的是magento 1.9社区版 突然间我无法访问magento前端和magento后端
这是错误页面
处理您的请求时遇到错误SQLSTATE [HY000] [1045] 用户' medpgmagento' @' localhost' (使用密码: YES)
跟踪: ../public_html/lib/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract-> _connect() ../public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(396): Zend_Db_Adapter_Pdo_Mysql-> _connect() ../public_html/lib/Zend/Db/Adapter/Abstract.php(460):Varien_Db_Adapter_Pdo_Mysql-> _connect() /public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->查询(' SET NAMES utf8',Array) ../public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->查询(' SET NAMES utf8',Array) ../public_html/app/code/core/Mage/Core/Model/Resource.php(179): Varien_Db_Adapter_Pdo_Mysql->查询(' SET NAMES utf8') ../public_html/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource-> _newConnection(' PDO_MYSQL&#39 ;, 对象(Mage_Core_Model_Config_Element)) ../public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->的getConnection(' core_write') ../public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract-> _getConnection('写') ../public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract-> _getWriteAdapter() ../public_html/app/code/core/Mage/Core/Model/Resource/Cache.php(53): Mage_Core_Model_Resource_Db_Abstract-> _getReadAdapter() ../public_html/app/code/core/Mage/Core/Model/Cache.php(478): Mage_Core_Model_Resource_Cache-> getAllOptions() ../public_html/app/code/core/Mage/Core/Model/Cache.php(520): Mage_Core_Model_Cache-> _initOptions() ../public_html/app/code/core/Mage/Core/Model/App.php(1202): Mage_Core_Model_Cache-> canUse('配置') ../public_html/app/code/core/Mage/Core/Model/Config.php(414): Mage_Core_Model_App-> useCache将('配置') ../public_html/app/code/core/Mage/Core/Model/Config.php(294): Mage_Core_Model_Config-> _canUseCacheForInit() ../public_html/app/code/core/Mage/Core/Model/App.php(424): Mage_Core_Model_Config-> loadModulesCache() ../public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Model_App-> _initModules() ../public_html/app/Mage.php(684):Mage_Core_Model_App-> run(Array) ../public_html/index.php(83):Mage :: run('',' store') {主要}
我已经在root中创建了tmp文件夹,并选择了缓存目录作为tmp,但仍然发生错误,我在c面板中修复了我的sql数据库。没用?
帮我解决问题
答案 0 :(得分:0)
检查mysql的用户名和密码。然后进入magento文件app / etc / local.xml并确保它们匹配。 然后清除缓存文件夹。这应该解决它。