MediaWiki  REL1_22
README
Go to the documentation of this file.
00001 == MediaWiki Maintenance ==
00002 
00003 The .sql scripts in this directory are not intended to be run standalone,
00004 although this is appropriate in some cases, e.g. manual creation of blank tables
00005 prior to an import.
00006 
00007 Most of the PHP scripts need to be run from the command line. Prior to doing so,
00008 ensure that the LocalSettings.php file in the directory above points to the
00009 proper installation.
00010 
00011 Certain scripts will require elevated access to the database. In order to
00012 provide this, first create a MySQL user with "all" permissions on the wiki
00013 database, and then set $wgDBadminuser and $wgDBadminpassword in your
00014 LocalSettings.php
00015 
00016 === Brief explanation of files ===
00017 
00018 A lot of the files in this directory are PHP scripts used to perform various
00019 maintenance tasks on the wiki database, e.g. rebuilding link tables, updating
00020 the search indices, etc. The files in the "archives" directory are used to
00021 upgrade the database schema when updating the software. Some schema definitions
00022 for alternative (as yet unsupported) database management systems are stored
00023 here too.
00024 
00025 The "storage" directory contains scripts and resources useful for working with
00026 external storage clusters, and are not likely to be particularly useful to the
00027 vast majority of installations. This directory does contain the compressOld
00028 scripts, however, which can be useful for compacting old data.
00029 
00030 === Maintenance scripts ===
00031 
00032 As noted above, these should be run from the command line. Not all scripts are
00033 listed, as some are Wikimedia-specific, and some are not applicable to most
00034 installations.
00035 
00036     changePassword.php
00037     Reset the password of a specified user
00038 
00039     cleanupSpam.php
00040     Mass-revert insertion of linkspam
00041 
00042     createAndPromote.php
00043     Create a user with administrator (and optionally, bureaucrat) permissions
00044 
00045     deleteOldRevisions.php
00046     Erase old revisions of pages from the database
00047 
00048     dumpBackup.php
00049     Backup dump script
00050 
00051     edit.php
00052     Edit a page to change its content
00053 
00054     findhooks.php
00055     Find hooks that aren't documented in docs/hooks.txt
00056 
00057     importDump.php
00058     XML dump importer
00059 
00060     importImages.php
00061     Import images into the wiki
00062 
00063     importTextFile.php
00064     Import the contents of a text file into a wiki page
00065 
00066     moveBatch.php
00067     Move a batch of pages
00068 
00069     namespaceDupes.php
00070     Check articles name to see if they conflict with new/existing namespaces
00071 
00072     nukePage.php
00073     Wipe a page and all revisions from the database
00074 
00075     reassignEdits.php
00076     Reassign edits from one user to another
00077 
00078     rebuildImages.php
00079     Update image metadata records
00080 
00081     rebuildmessages.php
00082     Update the MediaWiki namespace after changing site language
00083 
00084     rebuildtextindex.php
00085     Rebuild the fulltext search indices
00086 
00087     refreshLinks.php
00088     Rebuild the link tables
00089 
00090     removeUnusedAccounts.php
00091     Remove user accounts which have made no edits
00092 
00093     runJobs.php
00094     Immediately complete all jobs in the job queue
00095 
00096     showCacheStats.php
00097     Show all statistics stored in the cache
00098 
00099     undelete.php
00100     Undelete all revisions of a page
00101 
00102     update.php
00103     Check and upgrade the database schema to the current version
00104 
00105     updateRestrictions.php
00106     Update pages restriction to the new schema
00107 
00108     userOptions.php
00109     Change user options