Hello everyone,
I have a problem with my moodle installation. When I try to create a new user I get an error message "Cannot read database". I look in the forum for possible solutions of this problem and I found a thread that says that the problem I caused my a missconfigured Database coalotion. It suggests then to execute the following command to solve this issue:
php admin/cli/mysql_collation.php --collation=utf8mb4_unicode_ci
When I do this it runs flawless untin the step where it check the groups table and then it throws the following error:
Default exception handler: Fehler beim Lesen der Datenbank Debug: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'groups WHERE collation IS NOT NULL' at line 1
SHOW FULL COLUMNS FROM groups WHERE collation IS NOT NULL
[array (
)]
Error code: dmlreadexception
* line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
* line 1212 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 167 of /admin/cli/mysql_collation.php: call to mysqli_native_moodle_database->get_recordset_sql()
!!! Fehler beim Lesen der Datenbank !!!
!! You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'groups WHERE collation IS NOT NULL' at line 1
SHOW FULL COLUMNS FROM groups WHERE collation IS NOT NULL
[array (
)]
Error code: dmlreadexception !!
!! Stack trace: * line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
* line 1212 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 167 of /admin/cli/mysql_collation.php: call to mysqli_native_moodle_database->get_recordset_sql()
!!
I tried to find anything about this error, but unfortunately without any success. Could someone tell me what went wrong here? Why the script fails?
Thanks in advace for any suggestion.