Manual:Update.php

Details
update.php checks if the schema>Special:MyLanguage/Manual:Database layout|MediaWiki database schema needs to be updated in order to work with the current version of MediaWiki. You should run  after each upgrade>Special:MyLanguage/Manual:Upgrading|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.

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.


 * '''&rarr;

webupd>Manual:Upgrading#Web browser|Web updater '''

From the command line
From the command line, or an SSH shell or similar:

 $ php update.php   may exit with errors, leaving the database in an inconsistent state. Always backup>Special:MyLanguage/Manual:Backing up a wiki|backup the database before running the script!
 * Change to the maintenance directory
 * Run the update script:

Use the following on  instances (from within your vagrant ssh).  $ mwscript update.php

Parameters
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.

Script specific parameters
skip countdown sequence do not purge objectcache table. Normally update.php purges the objtable>Special:MyLanguage/Manual:objectcache table|objectcache (generally contains the parser cache and the messages cache), restable>Special:MyLanguage/Manual:Msg resource table|msg_resource and linkstable>Special:MyLanguage/Manual:Msg resource links table</>|msg_resource_links (these are used for <tvar|loader></> 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 <tvar|nopurge>--nopurge</tt></> option. Update shareddb>Special:MyLanguage/Manual:Shared_database</>|shared tables as well. Run this script even if it is disabled by configuration options. Skips compatibility checks

Extensions can install/update their schemas using <tvar|updhook></> hook.