[英]How to write hasura kubernetes deployment file to connect multiple postgres database
[英]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
堆棧跟蹤:/lib/dml/moodle_database.php 的第 489 行:/lib/dml/mysqli_native_moodle_database.php 的 dml_write_exception 拋出的第 1329 行:調用moodle_database->query_end() 的/lib/dml/mysqli_native_moodle_database 的第 1375 行:call_database mysqli_native_moodle_database->insert_record_raw() line 232 of /auth/wp2moodle/login.php:調用mysqli_native_moodle_database->insert_record()
您正在嘗試將重復的用戶名添加到數據庫中。 請檢查,您插入的用戶名已經存在。
運行這個命令需要moodle(3.1和新版本)
php admin/cli/mysql_collation.php --collation=utf8mb4_unicode_ci
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.