cancel
Showing results for 
Search instead for 
Did you mean: 

Magento2 Changing database passwd

Magento2 Changing database passwd

Hi I need help in changing mysql8 passwd.

Step I've taken: updated env.php with new passwd changed user passwd via phpmyadmin service mysql restart clear cache / re-index

I can access database with Magento user via phpmyadmin and also via CLI mysql by using new password.

However, when I go to website I get following error.

error: An error has happened during application run. See exception log for details.

[2022-10-12 09:28:18] main.CRITICAL: Class Magento\Framework\App\Http\Interceptor does not exist {"exception":"[object] (ReflectionException(code: -1): Class Magento\Framework\App\Http\Interceptor does not exist at /www/vendor/magento/framework/Code/Reader/ClassReader.php:28)"} []

Second try: Updated env.php with new passwd

Updated user via mysql: ALTER USER 'username'@'databsehost' IDENTIFIED BY 'secondtrynewpasswd'; result: Query OK, 0 rows affected (0.02 sec) exit

service mysql restart clear cache / re-index

I've tried restarting server and still getting same error.