Last modified: 2012-12-31 16:50:37 UTC
when launching the following command-line php maintenance/update.php the userDupe.inc file does not include the database table prefix. In my LocalSettings.php I've included : $wgDBprefix= "gdn"; But the script stopped with the following messages : MediaWiki 1.19alpha Updater Going to run database updates for grondin-gdn Depending on the size of your database this may take a while! Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0 ...have ipb_id field in ipblocks table. ...have ipb_expiry field in ipblocks table. ...already have interwiki table ...indexes seem up to 20031107 standards ...hitcounter table already exists. ...have rc_type field in recentchanges table. ...user table does not exist, skipping new field patch ...querycache table already exists. ...objectcache table already exists. ...categorylinks table already exists. ...have pagelinks; skipping old links table updates ...il_from OK ...have rc_ip field in recentchanges table. ...PRIMARY key already set on image table. ...have rc_id field in recentchanges table. ...have rc_patrolled field in recentchanges table. ...logging table already exists. ...user table does not exist, skipping new field patch ...have wl_notificationtimestamp field in watchlist table. ...watchlist talk page rows already present ...user table does not contain user_emailauthenticationtimestamp field. ...page table already exists. ...have log_params field in logging table. ...logging table has correct log_title encoding. ...have ar_rev_id field in archive table. ...have page_len field in page table. ...revision table does not contain inverse_timestamp field. ...have rev_text_id field in revision table. ...have rev_deleted field in revision table. ...have img_width field in image table. ...have img_metadata field in image table. ...user table does not exist, skipping new field patch ...have ar_text_id field in archive table. ...page_namespace is already a full int (int(11)). ...ar_namespace is already a full int (int(11)). ...rc_namespace is already a full int (int(11)). ...wl_namespace is already a full int (int(11)). ...qc_namespace is already a full int (int(11)). ...log_namespace is already a full int (int(11)). ...have img_media_type field in image table. ...already have pagelinks table. ...image table does not contain img_type field. A database query syntax error has occurred. The last attempted database query was: "SHOW INDEX FROM `grondin`.`user`" from within function "UserDupes::hasUniqueIndex". Database returned error "1146: Table 'grondin.user' doesn't exist (localhost)" the programme ought to read the table 'grondin.gnduser' … and the wiki is down.
I tested it at the r88369.
Weird, its using indexInfo() which uses tableName(), it should be respecting the prefix...
No, it omitted the prefix of the data base.
If the updater used 'grondin.user', this mean that you have set a shared database using $wgSharedDB (by default the user table is in $wgSharedTables). Please check this and if this is the case set $wgSharedPrefix accordingly.
Bertrand, can you respond to this: > If the updater used 'grondin.user', this mean that you have set a shared > database using $wgSharedDB (by default the user table is in $wgSharedTables). > Please check this and if this is the case set $wgSharedPrefix accordingly.
Bertrand, could you please answer comment 4?
Unfortunately closing this report as no further information has been provided. Bertrand: Please feel free to reopen this report if you can provide the information asked for. Thanks!