写入数据库的 Moodle 错误
Moodle eeror to write in database
我 运行 在 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
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 232 of
/auth/wp2moodle/login.php: call to
mysqli_native_moodle_database->insert_record()
您正在尝试将重复的用户名添加到数据库中。请检查,您输入的用户名已经存在
运行 moodle(3.1 及新版本)需要此命令
php admin/cli/mysql_collation.php --collation=utf8mb4_unicode_ci
我 运行 在 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
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 232 of /auth/wp2moodle/login.php: call to mysqli_native_moodle_database->insert_record()
您正在尝试将重复的用户名添加到数据库中。请检查,您输入的用户名已经存在
运行 moodle(3.1 及新版本)需要此命令
php admin/cli/mysql_collation.php --collation=utf8mb4_unicode_ci