Manual:Update.php/ja

詳細
update.phpはMediawikiデータベーススキーマ が新しいバージョンのMediawikiに対応させるためのアップデートが必要かどうかを確認します. Mediawikiのアップグレードや、スキーマのアップデートを必要とする拡張機能のインストールまたはアップデートを行った際には、 を実行すべきです. スキーマのアップデートを必要とする拡張機能のほとんどはドキュメンテーションの中でそのことに言及しています.

ブラウザーで
If you do not have access to the command line of your server, then use the web updater to run the update script.


 * &rarr; Web updater

コマンドラインで
From the command line, or an SSH shell or similar:  $ php update.php
 * Change to the maintenance directory
 * Run the update script:

 $ mwscript update.php

パラメーター
This script offers several parameters (generic, script dependent and script specific) which may be required in some wiki environments.

Generic maintenance parameters

 * : used to get a prompt of all available script parameters (generic, script dependent and script specific) together with short explanations of their usage. These are less often used parameters.
 * : update wiki family if database name depends on virtual host, where wikiId - database name (e.g. enwiki, dewiki ...)

スクリプト固有のパラメーター

 * : skip countdown sequence
 * : do not purge objectcache table. Normally  purges the  table (generally contains the parser cache and the messages cache),  and  (these are used for  message caching and are cleared in 1.21 and later) tables in the database, if you don't want to purge this table, use the   option.
 * : Update shared tables as well.
 * : Run this script even if it is disabled by configuration options.
 * : Specifies the config file (the LocalSettings.php file for the specific wiki). Used for wiki families.
 * : Skips compatibility checks
 * : when using composer.local.json to let Composer install extensions and their dependencies, you may see an error message saying that there is a mismatch between the installed and required version (e.g. "mediawiki/semantic-breadcrumb-links: 1.3.0 installed, ~1.3 required"). You can use this parameter to ignore the message and run update.php regardless.

Extensions can install/update their schemas using hook.

関連項目

 * and
 * For detailed instruction on using update.php, see, Manual:Upgrading