Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
archives
benchmarks
dev
dictionary
hhvm
includes
jsduck
language
locking
mssql
oracle
postgres
resources
sqlite/archives
storage
term
.htaccess
7zip.inc
CodeCleanerGlobalsPass.inc
Doxyfile
Maintenance.php
Makefile
README
addChangeTag.php
addRFCandPMIDInterwiki.php
addSite.php
attachLatest.php
categoryChangesAsRdf.php
cdb.php
changePassword.php
checkBadRedirects.php
checkComposerLockUpToDate.php
checkImages.php
checkLess.php
checkUsernames.php
cleanupAncientTables.php
cleanupBlocks.php
cleanupCaps.php
cleanupEmptyCategories.php
cleanupImages.php
cleanupInvalidDbKeys.php
cleanupPreferences.php
cleanupRemovedModules.php
cleanupSpam.php
cleanupTable.inc
cleanupTitles.php
cleanupUploadStash.php
cleanupUsersWithNoId.php
cleanupWatchlist.php
clearInterwikiCache.php
commandLine.inc
compareParserCache.php
compareParsers.php
convertExtensionToRegistration.php
convertLinks.php
convertUserOptions.php
copyFileBackend.php
copyJobQueue.php
createAndPromote.php
createCommonPasswordCdb.php
deduplicateArchiveRevId.php
deleteArchivedFiles.php
deleteArchivedRevisions.php
deleteAutoPatrolLogs.php
deleteBatch.php
deleteDefaultMessages.php
deleteEqualMessages.php
deleteLocalPasswords.php
deleteOldRevisions.php
deleteOrphanedRevisions.php
deleteSelfExternals.php
doMaintenance.php
dumpBackup.php
dumpCategoriesAsRdf.php
dumpIterator.php
dumpLinks.php
dumpTextPass.php
dumpUploads.php
edit.php
eraseArchivedFile.php
eval.php
exportSites.php
fetchText.php
fileOpPerfTest.php
findDeprecated.php
findHooks.php
findMissingFiles.php
findOrphanedFiles.php
fixDefaultJsonContentPages.php
fixDoubleRedirects.php
fixExtLinksProtocolRelative.php
fixTimestamps.php
fixUserRegistration.php
formatInstallDoc.php
generateJsonI18n.php
generateLocalAutoload.php
generateSitemap.php
getConfiguration.php
getLagTimes.php
getReplicaServer.php
getSlaveServer.php
getText.php
importDump.php
importImages.php
importSiteScripts.php
importSites.php
importTextFiles.php
initEditCount.php
initSiteStats.php
initUserPreference.php
install.php
interwiki.list
interwiki.sql
invalidateUserSessions.php
jsparse.php
lag.php
makeTestEdits.php
manageJobs.php
mcc.php
mctest.php
mergeMessageFileList.php
migrateActors.php
migrateArchiveText.php
migrateComments.php
migrateFileRepoLayout.php
migrateUserGroup.php
minify.php
moveBatch.php
mwdoc-filter.php
mwdocgen.php
mwjsduck-gen
mysql.php
namespaceDupes.php
nukeNS.php
nukePage.php
orphans.php
pageExists.php
parse.php
patchSql.php
populateArchiveRevId.php
populateBacklinkNamespace.php
populateCategory.php
populateChangeTagDef.php
populateContentModel.php
populateContentTables.php
populateExternallinksIndex60.php
populateFilearchiveSha1.php
populateImageSha1.php
populateInterwiki.php
populateIpChanges.php
populateLogSearch.php
populateLogUsertext.php
populatePPSortKey.php
populateParentId.php
populateRecentChangesSource.php
populateRevisionLength.php
populateRevisionSha1.php
preprocessDump.php
preprocessorFuzzTest.php
protect.php
pruneFileCache.php
purgeChangedFiles.php
purgeChangedPages.php
purgeExpiredUserrights.php
purgeList.php
purgeModuleDeps.php
purgeOldText.php
purgePage.php
purgeParserCache.php
reassignEdits.php
rebuildFileCache.php
rebuildImages.php
rebuildLocalisationCache.php
rebuildSitesCache.php
rebuildall.php
rebuildmessages.php
rebuildrecentchanges.php
rebuildtextindex.php
recountCategories.php
refreshFileHeaders.php
refreshImageMetadata.php
refreshLinks.php
removeInvalidEmails.php
removeUnusedAccounts.php
renameDbPrefix.php
renderDump.php
resetAuthenticationThrottle.php
resetUserEmail.php
resetUserTokens.php
rollbackEdits.php
runBatchedQuery.php
runJobs.php
runScript.php
shell.php
showJobs.php
showSiteStats.php
sql.php
sqlite.inc
sqlite.php
syncFileBackend.php
tables.sql
tidyUpT39714.php
undelete.php
update-keys.sql
update.php
updateArticleCount.php
updateCollation.php
updateCredits.php
updateDoubleWidthSearch.php
updateExtensionJsonSchema.php
updateRestrictions.php
updateSearchIndex.php
updateSpecialPages.php
userDupes.inc
userOptions.php
validateRegistrationFile.php
view.php
wrapOldPasswords.php

README

== 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

	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

	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