Hello!
With Moodle 3.5.3+ (Build: 20181116) I can login using admin user. When I update it to 3.5.6+ (Build: 20190514) Moodle show a database error and I can't login:
Debug info: Duplicate entry '1-adminuser' for key 'mdl_user_mneuse_uix'
INSERT INTO mdl_user (city,auth,username,lang,confirmed,lastip,timecreated,timemodified,mnethostid,calendartype,maildisplay,mailformat,maildigest,autosubscribe,trackforums) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
Stack trace:
line 489 of \lib\dml\moodle_database.php: dml_write_exception thrown
line 1329 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1375 of \lib\dml\mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 111 of \user\lib.php: call to mysqli_native_moodle_database->insert_record()
line 3903 of \lib\moodlelib.php: call to user_create_user()
line 4393 of \lib\moodlelib.php: call to create_user_record()
line 141 of \login\index.php: call to authenticate_user_login()
My config.php has following $CFG-> dboptions before update:
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => '',
'dbsocket' => '',
'dbcollation' => 'utf8mb4_general_ci',
);
What can I do?
Thanks in advance