MediaWiki
REL1_24
|
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 moveBatch.php 00064 Move a batch of pages 00065 00066 namespaceDupes.php 00067 Check articles name to see if they conflict with new/existing namespaces 00068 00069 nukePage.php 00070 Wipe a page and all revisions from the database 00071 00072 reassignEdits.php 00073 Reassign edits from one user to another 00074 00075 rebuildImages.php 00076 Update image metadata records 00077 00078 rebuildmessages.php 00079 Update the MediaWiki namespace after changing site language 00080 00081 rebuildtextindex.php 00082 Rebuild the fulltext search indices 00083 00084 refreshLinks.php 00085 Rebuild the link tables 00086 00087 removeUnusedAccounts.php 00088 Remove user accounts which have made no edits 00089 00090 runJobs.php 00091 Immediately complete all jobs in the job queue 00092 00093 showCacheStats.php 00094 Show all statistics stored in the cache 00095 00096 undelete.php 00097 Undelete all revisions of a page 00098 00099 update.php 00100 Check and upgrade the database schema to the current version 00101 00102 updateRestrictions.php 00103 Update pages restriction to the new schema 00104 00105 userOptions.php 00106 Change user options