Database access denied after conversion to utf8mb4

As suggested by Matomos system page, I tried to convert the database to utf8mb4. Now I am stuck with “database access denied”.

I performed the following steps:
-Converted the database to utf8mb4 with
console core:convert-to-utf8mb4
which seemed to work fine. Performed this command several times because I was not sure it if was done completely.

-Then the following:

console config:set --section=database --key=charset --value=utf8mb4
console config:set --section=database --key=collation --value=utf8mb4_general_ci
console config:set --section=Tracker --key=record_statistics --value=1

After that I get an “Database access denied”. I am using MariaDB 10.11.
Settings in config.ini.php are

charset = "utf8mb4"
collation = "utf8mb4_general_ci"

How can I proceed from here?

Okay, found it. The console script had messed up the credentials for the DB (I had some old values in comments or something).

With the correct credentials everything works again.