The maintenance script update.php checks if the MediaWiki database schema needs to be updated to work with the current version of MediaWiki. You should run update.php
after each upgrade of MediaWiki or after the update or install of an extension that requires a schema update. Most extensions that require schema updates will say so in their documentation.
This maintenance script can be disabled via
$wgAllowSchemaUpdates. People with extremely large and busy wikis may need to do upgrades with care, but if you're not sure if that applies to you, then it probably doesn't.
Usage Warning:update.php
may exit with errors, leaving the database in an inconsistent state. Always backup the database before running the script!
From the browser
If you do not have access to the command line of your server, then use the web updater to run the update script.
Use the following from the command line, or an SSH shell or similar:
MediaWiki version:≥ 1.40
$ php maintenance/run.php updateMediaWiki version:
≤ 1.39
$ php maintenance/update.php
Use the following on Vagrant instances (from within your Vagrant SSH).
ParametersThis script offers several parameters (generic, script-dependent, and script-specific) that may be required in some wiki environments.
Generic maintenance parameters--help
--wiki wikiId
--conf
LocalSettings.php
file for the specific wiki). Used for wiki families.
--quick
--initial
--doshared
--noschema
--schema
Allows "update.php" to be run when
$wgAllowSchemaUpdatesis set to false. This is useful for non-WMF environments where strict DB permissions allow database updates (which "update.php" performs), but no schema changes (such as adding or dropping tables or indexes, which "update.php" also performs).
--force
--skip-external-dependencies
--skip-config-validation
--skip-compat-checks
--nopurge
update.php
purges the objectcache table (generally contains the parser cache and the messages cache), msg_resource and msg_resource_links (these are used for ResourceLoader 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 --nopurge
option.
update.php
, see Manual:Upgrading , Manual:Upgrading#Command_lineRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4