2016-05-13 165 views
-1

我有一個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

+0

谷歌的錯誤消息,訪問被拒絕用戶'管理'@'本地主機'(使用密碼:是)「' –

+0

我有正確的數據庫設置,但仍然得到這個 –

+0

如果你收到該消息,然後東西似乎是錯誤的,雖然。 –

回答

0

假設本地主機是正確的,你需要檢查你的數據庫是否存在的用戶'管理員',並確保該用戶有權限讀取和寫入該特定數據庫。

這完全不是文件權限問題,聽起來像嚴格的數據庫相關問題。

+1

絕對是在mysql中的用戶權限(priveleges)。除了文件系統之外,還有更多權限。 –

相關問題