I'm using drupal 8 & MySQL 5.7.28
After I change the root password in MySQL database. then change the credentials in sites/default/settings.php. The website shows the following error
The website encountered an unexpected error. Please try again later.
Also I check apache logs but there is no error related to the database.
UPDATE
I found the following error in the mysql server logs.
[Note] Access denied for user 'root'@'DBIP' (using password: YES)
the following command I run to update the root password
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
FLUSH PRIVILEGES;
any advice.