Home / wiki / maintenance
Name Modified Size InfoDownloads / Week
Parent folder
sqlite 2011-03-17
postgres 2011-03-17
tests 2011-03-17
storage 2011-03-17
ora 2011-03-17
mssql 2011-03-17
language 2011-03-17
ibm_db2 2011-03-17
gearman 2011-03-17
dtrace 2011-03-17
archives 2011-03-17
wiktionary-interwiki.sql 2011-03-17 8.3 kB
wikipedia-interwiki.sql 2011-03-17 13.1 kB
userOptions.php 2011-03-17 572 Bytes
users.sql 2011-03-17 516 Bytes
waitForSlave.php 2011-03-17 1.2 kB
userDupes.inc 2011-03-17 8.8 kB
userOptions.inc 2011-03-17 6.1 kB
updaters.inc 2011-03-17 72.5 kB
upgrade1_5.php 2011-03-17 1.1 kB
updateSpecialPages.php 2011-03-17 4.5 kB
updateSearchIndex.php 2011-03-17 5.7 kB
updateRestrictions.php 2011-03-17 4.2 kB
update.php 2011-03-17 1.6 kB
updateArticleCount.php 2011-03-17 3.2 kB
tables.sql 2011-03-17 48.5 kB
undelete.php 2011-03-17 1.1 kB
testRunner.sql 2011-03-17 905 Bytes
testRunner.ora.sql 2011-03-17 1.2 kB
testRunner.postgres.sql 2011-03-17 960 Bytes
stats.php 2011-03-17 4.1 kB
sql.php 2011-03-17 2.5 kB
sqlite.php 2011-03-17 3.6 kB
showJobs.php 2011-03-17 1.8 kB
showStats.php 2011-03-17 2.3 kB
runBatchedQuery.php 2011-03-17 2.0 kB
runJobs.php 2011-03-17 3.0 kB
renamewiki.php 2011-03-17 2.8 kB
renderDump.php 2011-03-17 3.2 kB
rollbackEdits.php 2011-03-17 3.2 kB
refreshLinks.php 2011-03-17 8.5 kB
renameDbPrefix.php 2011-03-17 2.8 kB
removeUnusedAccounts.php 2011-03-17 4.2 kB
refreshImageCount.php 2011-03-17 1.7 kB
rebuildrecentchanges.php 2011-03-17 9.4 kB
rebuildtextindex.php 2011-03-17 3.9 kB
rebuildLocalisationCache.php 2011-03-17 4.4 kB
rebuildmessages.php 2011-03-17 1.6 kB
rebuildInterwiki.inc 2011-03-17 7.3 kB
rebuildInterwiki.php 2011-03-17 571 Bytes
rebuildImages.php 2011-03-17 5.9 kB
rebuildFileCache.php 2011-03-17 4.4 kB
reassignEdits.php 2011-03-17 6.0 kB
rebuildall.php 2011-03-17 2.1 kB
purgeOldText.php 2011-03-17 1.3 kB
README 2011-03-17 3.1 kB
purgeList.php 2011-03-17 1.8 kB
purgeOldText.inc 2011-03-17 1.7 kB
preprocessorFuzzTest.php 2011-03-17 6.8 kB
protect.php 2011-03-17 2.2 kB
populateParentId.php 2011-03-17 4.5 kB
populateSha1.php 2011-03-17 3.3 kB
populateLogSearch.php 2011-03-17 5.6 kB
populateParentId.inc 2011-03-17 3.0 kB
populateCategory.php 2011-03-17 3.7 kB
populateLogUsertext.php 2011-03-17 2.7 kB
populateCategory.inc 2011-03-17 1.7 kB
populateLogSearch.inc 2011-03-17 2.6 kB
parserTests.txt 2011-03-17 161.3 kB
patchSql.php 2011-03-17 1.9 kB
parserTestsStaticParserHook.php 2011-03-17 1.4 kB
parserTestsParserTime.php 2011-03-17 791 Bytes
parserTestsParserHook.php 2011-03-17 780 Bytes
parserTests.inc 2011-03-17 48.0 kB
parserTests.php 2011-03-17 3.3 kB
orphans.php 2011-03-17 7.3 kB
ourusers.php 2011-03-17 1.6 kB
nukeNS.php 2011-03-17 3.9 kB
nukePage.php 2011-03-17 3.5 kB
namespaceDupes.php 2011-03-17 9.3 kB
nextJobDB.php 2011-03-17 3.1 kB
mwdocgen.php 2011-03-17 6.3 kB
minify.php 2011-03-17 2.9 kB
moveBatch.php 2011-03-17 3.5 kB
mctest.php 2011-03-17 2.5 kB
mergeMessageFileList.php 2011-03-17 2.0 kB
migrateUserGroup.php 2011-03-17 2.5 kB
Maintenance.php 2011-03-17 25.3 kB
mcc.php 2011-03-17 3.4 kB
Makefile 2011-03-17 228 Bytes
lag.php 2011-03-17 1.2 kB
installExtension.php 2011-03-17 18.9 kB
interwiki.sql 2011-03-17 5.3 kB
install-utils.inc 2011-03-17 5.7 kB
initStats.php 2011-03-17 2.7 kB
importUseModWiki.php 2011-03-17 9.9 kB
initEditCount.php 2011-03-17 3.6 kB
importImages.php 2011-03-17 10.0 kB
importTextFile.php 2011-03-17 2.3 kB
importDump.php 2011-03-17 5.0 kB
importImages.inc 2011-03-17 3.2 kB
httpSessionDownload.php 2011-03-17 1.8 kB
fuzz-tester.php 2011-03-17 114.8 kB
getText.php 2011-03-17 2.1 kB
getSlaveServer.php 2011-03-17 1.6 kB
getLagTimes.php 2011-03-17 1.7 kB
generateSitemap.php 2011-03-17 11.8 kB
fixTimestamps.php 2011-03-17 4.1 kB
fixUserRegistration.php 2011-03-17 1.9 kB
FiveUpgrade.inc 2011-03-17 39.2 kB
fixSlaveDesync.php 2011-03-17 6.6 kB
findhooks.php 2011-03-17 6.8 kB
eval.php 2011-03-17 1.8 kB
fetchText.php 2011-03-17 1.9 kB
dumpTextPass.php 2011-03-17 12.2 kB
dumpUploads.php 2011-03-17 3.7 kB
edit.php 2011-03-17 2.7 kB
dumpSisterSites.php 2011-03-17 1.8 kB
dumpInterwiki.inc 2011-03-17 6.9 kB
dumpLinks.php 2011-03-17 2.3 kB
dumpInterwiki.php 2011-03-17 530 Bytes
Doxyfile 2011-03-17 10.8 kB
dumpHTML.php 2011-03-17 204 Bytes
dumpBackup.php 2011-03-17 3.5 kB
deleteSelfExternals.php 2011-03-17 2.0 kB
doMaintenance.php 2011-03-17 3.1 kB
deleteOrphanedRevisions.php 2011-03-17 2.9 kB
deleteRevision.php 2011-03-17 2.9 kB
deleteImageMemcached.php 2011-03-17 2.3 kB
deleteOldRevisions.php 2011-03-17 3.2 kB
deleteBatch.php 2011-03-17 3.4 kB
deleteDefaultMessages.php 2011-03-17 2.1 kB
deleteArchivedFiles.php 2011-03-17 2.9 kB
deleteArchivedRevisions.php 2011-03-17 2.3 kB
convertUserOptions.php 2011-03-17 2.1 kB
createAndPromote.php 2011-03-17 2.3 kB
convertLinks.inc 2011-03-17 7.9 kB
convertLinks.php 2011-03-17 9.6 kB
clear_stats.php 2011-03-17 1.9 kB
commandLine.inc 2011-03-17 972 Bytes
cleanupWatchlist.php 2011-03-17 2.8 kB
clear_interwiki_cache.php 2011-03-17 1.7 kB
cleanupTitles.php 2011-03-17 5.3 kB
cleanupTable.inc 2011-03-17 4.6 kB
cleanupSpam.php 2011-03-17 4.2 kB
cleanupImages.php 2011-03-17 6.1 kB
cleanupDupes.inc 2011-03-17 4.0 kB
checkSyntax.php 2011-03-17 8.9 kB
checkUsernames.php 2011-03-17 1.7 kB
cleanupCaps.php 2011-03-17 3.2 kB
checkImages.php 2011-03-17 2.5 kB
checkAutoLoader.php 2011-03-17 2.0 kB
checkBadRedirects.php 2011-03-17 1.9 kB
benchmarkPurge.php 2011-03-17 3.3 kB
changePassword.php 2011-03-17 1.9 kB
backup.inc 2011-03-17 8.9 kB
backupPrefetch.inc 2011-03-17 4.9 kB
addwiki.php 2011-03-17 8.9 kB
attachLatest.php 2011-03-17 2.8 kB
7zip.inc 2011-03-17 1.6 kB
Totals: 160 Items   1.1 MB 4
== MediaWiki Maintenance ==

The .sql scripts in this directory are not intended to be run standalone,
although this is appropriate in some cases, e.g. manual creation of blank tables
prior to an import.

Most of the PHP scripts need to be run from the command line. Prior to doing so,
ensure that the LocalSettings.php file in the directory above points to the
proper installation.

Certain scripts will require elevated access to the database. In order to
provide this, first create a MySQL user with "all" permissions on the wiki
database, and then set $wgDBadminuser and $wgDBadminpassword in your
LocalSettings.php

=== Brief explanation of files ===

A lot of the files in this directory are PHP scripts used to perform various
maintenance tasks on the wiki database, e.g. rebuilding link tables, updating
the search indices, etc. The files in the "archives" directory are used to
upgrade the database schema when updating the software. Some schema definitions
for alternative (as yet unsupported) database management systems are stored
here too.

The "storage" directory contains scripts and resources useful for working with
external storage clusters, and are not likely to be particularly useful to the
vast majority of installations. This directory does contain the compressOld
scripts, however, which can be useful for compacting old data.

=== Maintenance scripts ===

As noted above, these should be run from the command line. Not all scripts are
listed, as some are Wikimedia-specific, and some are not applicable to most
installations.

	changePassword.php
	Reset the password of a specified user

	cleanupSpam.php
	Mass-revert insertion of linkspam

	createAndPromote.php
	Create a user with administrator (and optionally, bureaucrat) permissions

	deleteOldRevisions.php
	Erase old revisions of pages from the database

	dumpBackup.php
	Backup dump script

	edit.php
	Edit a page to change its content

	findhooks.php
	Find hooks that aren't documented in docs/hooks.txt

	importDump.php
	XML dump importer
	
	importImages.php
	Import images into the wiki
	
	importTextFile.php
	Import the contents of a text file into a wiki page

	moveBatch.php
	Move a batch of pages 

	namespaceDupes.php
	Check articles name to see if they conflict with new/existing namespaces

	nukePage.php
	Wipe a page and all revisions from the database

	reassignEdits.php
	Reassign edits from one user to another

	rebuildImages.php
	Update image metadata records

	rebuildmessages.php
	Update the MediaWiki namespace after changing site language

	rebuildtextindex.php
	Rebuild the fulltext search indices

	refreshLinks.php
	Rebuild the link tables

	removeUnusedAccounts.php
	Remove user accounts which have made no edits

	runJobs.php
	Immediately complete all jobs in the job queue

	stats.php
	Show all statistics stored in the cache

	undelete.php
	Undelete all revisions of a page

	update.php
	Check and upgrade the database schema to the current version

	updateRestrictions.php
	Update pages restriction to the new schema

	userOptions.php
	Change user options
Source: README, updated 2011-03-17