After upgraded from Moodle 4.1+MariaDB 10.5 to Moodle 4.2+ MariaDB 10.11, moodle cannot access the database and have following debug info:
Error: Database connection failed
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php
Debug info: Permission denied
Error code: dbconnectionfailed
Error code: dbconnectionfailed
Stack trace:
I've checked config.php, grants for database user and php modules. They all work great, and I don't know what else could have any problem. Does anyone have any clues?- line 587 of /lib/dml/mysqli_native_moodle_database.php: dml_connection_exception thrown
- line 230 of /lib/dml/moodle_read_slave_trait.php: call to mysqli_native_moodle_database->raw_connect()
- line 215 of /lib/dml/moodle_read_slave_trait.php: call to mysqli_native_moodle_database->set_dbhwrite()
- line 340 of /lib/dmllib.php: call to mysqli_native_moodle_database->connect()
- line 650 of /lib/setup.php: call to setup_DB()
- line 32 of /config.php: call to require_once()
- line 30 of /index.php: call to require_once()