Skip to main content
2 of 2
formatting
Savan Patel
  • 2.4k
  • 1
  • 17
  • 40

Magento 2.4 error

I have installed magento, now when i try to access it below error appears.

[2021-09-22 11:20:36] main.CRITICAL: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' {"exception":"[object] (Zend_Db_Adapter_Exception(code: 1698): SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' at /var/www/html/m24/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144, PDOException(code: 1698): SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' at /var/www/html/m24/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128)"} []