我在带有状态数据库的Kubernetes上运行Moodle。
Moodle version : $version = 2018120303.14; // 20181203 = branching date YYYYMMDD - do not modify!
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
$release = '3.6.3+ (Build: 20190501)'; // Human-friendly version name
$branch = '36'; // This version's branch.
$maturity = MATURITY_STABLE; // This version's maturity level.
错误写入数据库有关此错误的其他信息
Debug info: Duplicate entry '1-12345678900' for key 'mdl_user_mneuse_uix'
INSERT INTO mdl_user (city,auth,policyagreed,idnumber,username,password,firstname,lastname,email,lang,confirmed,lastip,timecreated,timemodified,mnethostid) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
[array (
0 => '',
1 => 'wp2moodle',
2 => 1,
3 => '1584',
4 => '12345678900',
5 => 'a803bc70a48ce4568a9e85f7e1e30c58',
6 => 'Pedro',
7 => 'Marinelli',
8 => 'pedromarinelli@email.com',
9 => 'pt_br',
10 => 1,
11 => '177.192.193.143',
12 => 1537303059,
13 => 1537303059,
14 => '1',
)]
错误代码:dmlwriteException
堆栈跟踪:/lib/dml/moodle_database.php的第489行: dml_write_exception抛出1329 /lib/dml/mysqli_native_moodle_database.php:致电 moodle_database-> query_end((第1375行 /lib/dml/mysqli_native_moodle_database.php:致电 mysqli_native_moodle_database-> insert_record_raw((第232行 /auth/wp2moodle/login.php:致电 mysqli_native_moodle_database-> insert_record((
您正在尝试将重复用户名添加到数据库中。请检查,用户名您的插入已经存在。
运行此命令,该命令需要moodle(3.1和新版本(
php admin/cli/mysql_collation.php -collation = utf8mb4_unicode_ci