Magento错误:SQLSTATE [28000] [1045]访问被拒绝用户'admin'@'localhost'(使用密码:是)
问题描述:
我有一个Magento错误编号,而且我检查了/ httpdocs/var/report 了解什么问题,我已经清除我的浏览器缓存,并没有任何帮助..Magento错误:SQLSTATE [28000] [1045]访问被拒绝用户'admin'@'localhost'(使用密码:是)
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";}
我无功/报告写入权限777
答
假设本地主机是正确的,你需要检查你的数据库是否存在的用户'管理员',并确保该用户有权限读取和写入该特定数据库。
这完全不是文件权限问题,听起来像严格的数据库相关问题。
+1
绝对是在mysql中的用户权限(priveleges)。除了文件系统之外,还有更多权限。 –
谷歌的错误消息,访问被拒绝用户'管理'@'本地主机'(使用密码:是)“' –
我有正确的数据库设置,但仍然得到这个 –
如果你收到该消息,然后东西似乎是错误的,虽然。 –