升级MediaWiki 1.5.8到1.6.8

将mysql和php升级到合适的版本(http://dragon.linux-vs.org/~wensong/packages/mysql-php/)后,把LVS知识库从MediaWiki 1.5.8升级到1.6.8。

备份了数据库和html文件后,将mediawiki程序升级到1.6.8。设置AdminSettings.php文件,然后运行"php update.php"。

[wensong@dragon maintenance]$ php update.php
PHP Warning:  array_shift(): The argument should be an array in maintenance/commandLine.inc on line 30
PHP Warning:  reset(): Passed variable is not an array or object in maintenance/commandLine.inc on line 41
X-Powered-By: PHP/4.4.2
Content-type: text/html
 
MediaWiki 1.6.8 Updater
 
Going to run database updates for lvskb
Depending on the size of your database this may take a while!
Abort with control-c in the next five seconds...0
...hitcounter table already exists.
...querycache table already exists.
...objectcache table already exists.
...categorylinks table already exists.
...logging table already exists.
...validate table already exists.
...user_newtalk table already exists.
...transcache table already exists.
...trackbacks table already exists.
Creating externallinks table...ok
Creating job table...ok
...have ipb_id field in ipblocks table.
...have ipb_expiry field in ipblocks table.
...have rc_type field in recentchanges table.
...have rc_ip field in recentchanges table.
...have rc_id field in recentchanges table.
...have rc_patrolled field in recentchanges table.
...have user_real_name field in user table.
...have user_token field in user table.
...have user_email_token field in user table.
Adding user_registration field to table user...ok
...have log_params field in logging table.
...have ar_rev_id field in archive table.
...have ar_text_id field in archive table.
...have page_len field in page table.
...have rev_deleted field in revision table.
...have img_width field in image table.
...have img_metadata field in image table.
...have img_media_type field in image table.
...have val_ip field in validate table.
...have ss_total_pages field in site_stats table.
...have iw_trans field in interwiki table.
Adding ipb_range_start field to table ipblocks...ok
Adding ss_images field to table site_stats...ok
...already have interwiki table
...indexes seem up to 20031107 standards
Already have pagelinks; skipping old links table updates.
...image primary key already set.
The watchlist table is already set up for email notification.
Adding missing watchlist talk page rows... ok
...user table does not contain old email authentication field.
Logging table has correct title encoding.
...page table already exists.
revision timestamp indexes already up to 2005-03-13
...rev_text_id already in place.
...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)).
...already have pagelinks table.
Creating templatelinks table...
Populating...
Done. Please run maintenance/refreshLinks.php for a more thorough templatelinks update.
No img_type field in image table; Good.
Already have unique user_name index.
...user_groups table already exists.
...user_groups is in current format.
Making wl_notificationtimestamp nullable... ok
Adding timestamp key on logging table... ok
Setting page_random to a random value on rows where it equals 0...changed 934 rows
Initialising "MediaWiki" namespace...
Clearing message cache...Done.
Done.

升级成功。

randomness