1== MediaWiki Maintenance ==
3The .sql scripts in this directory are not intended to be run standalone,
4although this is appropriate in some cases, e.g. manual creation of blank tables
7Most of the PHP scripts need to be run from the command line. Prior to doing so,
8ensure that the LocalSettings.php file in the directory above points to the
11Certain scripts will require elevated access to the database. In order to
12provide this, first create a MySQL user with "all" permissions on the wiki
13database, and then set $wgDBadminuser and $wgDBadminpassword in your
16=== Brief explanation of files ===
18A lot of the files in this directory are PHP scripts used to perform various
19maintenance tasks on the wiki database, e.g. rebuilding link tables, updating
20the search indices, etc. The files in the "archives" directory are used to
21upgrade the database schema when updating the software. Some schema definitions
22for alternative (as yet unsupported) database management systems are stored
25The "storage" directory contains scripts and resources useful for working with
26external storage clusters, and are not likely to be particularly useful to the
27vast majority of installations. This directory does contain the compressOld
28scripts, however, which can be useful for compacting old data.
30=== Maintenance scripts ===
32As noted above, these should be run from the command line. Not all scripts are
33listed, as some are Wikimedia-specific, and some are not applicable to most
37 Reset the password of a specified user
40 Mass-revert insertion of linkspam
43 Create a user with administrator (and optionally, bureaucrat) permissions
45 deleteOldRevisions.php
46 Erase old revisions of pages from the database
52 Edit a page to change its content
55 Find hooks that aren't documented in docs/hooks.txt
61 Import images into the wiki
67 Check articles name to see if they conflict with new/existing namespaces
70 Wipe a page and all revisions from the database
73 Reassign edits from one user to another
76 Update image metadata records
79 Update the MediaWiki namespace after changing site language
82 Rebuild the fulltext search indices
85 Rebuild the link tables
87 removeUnusedAccounts.php
88 Remove user accounts which have made no edits
91 Immediately complete all jobs in the job queue
94 Undelete all revisions of a page
97 Check and upgrade the database schema to the current version
99 updateRestrictions.php
100 Update pages restriction to the new schema