Magento错误:SQLSTATE [28000] [1045]访问被拒绝用户'admin'@'localhost'(使用密码:YES)

时间:2016-05-13 14:21:23

标签: magento

我有一个Magento错误号,我从/ httpdocs / var / report检查过 不明白是什么问题,我已经清除了我的浏览器缓存,没有任何帮助..

a:4:{i:0;s:87:"
SQLSTATE[28000] [1045] Access denied for user 'admin'@'localhost' (using password: YES)
";i:1;s:2681:"
#0 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(53987): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(54460): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(52674): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(53730): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(54566): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(29302): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(29243): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(11744): Mage_Core_Model_Resource->getConnection('core_write')
#8 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(11774): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(11759): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/Mage_Core_Model_Resource_Cache.php(53): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/Mage_Core_Model_Cache.php(455): Mage_Core_Model_Resource_Cache->getAllOptions()
#12 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/Mage_Core_Model_Cache.php(497): Mage_Core_Model_Cache->_initOptions()
#13 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(20890): Mage_Core_Model_Cache->canUse('config')
#14 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(22503): Mage_Core_Model_App->useCache('config')
#15 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(22383): Mage_Core_Model_Config->_canUseCacheForInit()
#16 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(20120): Mage_Core_Model_Config->loadModulesCache()
#17 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(20050): Mage_Core_Model_App->_initModules()
#18 /var/www/vhosts/xxxx.com.au/httpdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#19 /var/www/vhosts/xxxx.com.au/httpdocs/index.php(88): Mage::run('', 'store')
#20 {main}
";s:3:"url";s:10:"/index.php";s:11:"script_name";s:10:"/index.php";}

我的var /报告777的可写权限

1 个答案:

答案 0 :(得分:0)

假设localhost是正确的,您需要检查数据库中是否存在用户'admin',并确保该用户具有对该特定数据库的读写权限。

这根本不是文件权限问题,听起来像是严格的数据库相关问题。