SQLSTATE[28000] [1045] Access denied for user

[16 июля 2019 г.]    Российская сборка Magento 2.52.2
Magento 2: модули и услуги
magereport.com: составление перечня необходимых для установки заплаток SUPEE
#1 Gabriel
  • Группа: Пользователь
  • Сообщений: 14
  • Регистрация: 12.09.2011

23.11.2011 03:08

В магенте 1.5.1.0 после отключения кэша магента упала и выдала ошибку:

"There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 466027305"

Постмотрел лог, вот что пишет:
a:4:{i:0;s:96:"SQLSTATE[28000] [1045] Access denied for user 'spartech_tests'@'localhost' (using password: YES)";i:1;s:3717:"#0 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/lib/Varien/Db/Adapter/Pdo/Mysql.php(251): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/lib/Zend/Db/Adapter/Abstract.php(459): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/lib/Varien/Db/Adapter/Pdo/Mysql.php(337): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/code/core/Mage/Core/Model/Resource/Type/Db/Pdo/Mysql.php(45): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/code/core/Mage/Core/Model/Resource.php(93): Mage_Core_Model_Resource_Type_Db_Pdo_Mysql->getConnection(Object(Mage_Core_Model_Config_Element))
#7 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(297): Mage_Core_Model_Resource->getConnection('core_read')
#8 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(312): Mage_Core_Model_Mysql4_Abstract->_getConnection('read')
#9 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(332): Mage_Core_Model_Mysql4_Abstract->_getReadAdapter()
#10 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/code/core/Mage/Core/Model/Mysql4/Collection/Abstract.php(118): Mage_Core_Model_Mysql4_Abstract->getReadConnection()
#11 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/code/core/Mage/Core/Model/Config.php(1254): Mage_Core_Model_Mysql4_Collection_Abstract->__construct(Object(Mage_Core_Model_Mysql4_Website))
#12 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/code/core/Mage/Core/Model/Config.php(1287): Mage_Core_Model_Config->getModelInstance('core_mysql4/web...', Object(Mage_Core_Model_Mysql4_Website))
#13 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/Mage.php(460): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Mysql4_Website))
#14 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/code/core/Mage/Core/Model/Abstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Mysql4_Website))
#15 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/code/core/Mage/Core/Model/Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#16 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/code/core/Mage/Core/Model/App.php(571): Mage_Core_Model_Abstract->getCollection()
#17 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/code/core/Mage/Core/Model/App.php(429): Mage_Core_Model_App->_initStores()
#18 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/code/core/Mage/Core/Model/App.php(335): Mage_Core_Model_App->_initCurrentStore('', 'store')
#19 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/app/Mage.php(627): Mage_Core_Model_App->run(Array)
#20 /chroot/home/spartech/magento-smart-extensions.com/html/testing-m1510/index.php(80): Mage::run('', 'store')
#21 {main}";s:3:"url";s:17:"/index.php/admin/";s:11:"script_name";s:10:"/index.php";}


Ничего не работает. В админку тоже не влезть. Не могли бы помочь?

#2 Дмитрий Федюк
  • Администратор
  • Иконка
  • Группа: Администратор
  • Сообщений: 8995
  • Регистрация: 20.02.2010

23.11.2011 05:48

Сообщение Access denied for user означает, что магазин пытается подключиться к своей базе данных, используя неверное системное имя или пароль пользователя базы данных.

Поделиться темой: