wiki.techinc.nl/maintenance
Umherirrender 94792e97be maintenance: Cleanup use of exit in Maintenance::execute implementation
Returning void from execute() is success.
Returning true is success, false is failure with exit(1)
Using fatalError also using exit(1)

Change-Id: I1d40430ad6226e4aab8f0810b03ee1213282d123
2021-08-30 19:48:27 +00:00
..
abstractSchemaChanges Rename change_tag indexes to have ct_ prefix 2021-06-08 17:57:15 +01:00
archives Rename change_tag indexes to have ct_ prefix 2021-06-08 17:57:15 +01:00
benchmarks maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
dev build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
includes Merge "docs: Use interface instead of real types in documentation" 2021-08-28 18:33:48 +00:00
jsduck resourceloader: Define mw.loader in its own JS file 2021-08-29 04:55:14 +01:00
language Merge "Remove dead variables and functions and unneeded parenthesis" 2021-08-17 07:25:24 +00:00
locking
mediawiki.Title maintenance: Remove executable bit from scripts without shebang 2020-07-31 18:29:19 -07:00
postgres Rename change_tag indexes to have ct_ prefix 2021-06-08 17:57:15 +01:00
sqlite Rename change_tag indexes to have ct_ prefix 2021-06-08 17:57:15 +01:00
storage maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
term
.htaccess
addChangeTag.php Use a constant for 'Maintenance script' username 2021-05-03 23:34:26 +02:00
addRFCandPMIDInterwiki.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
addSite.php Add notice about local-server cache to addSite.php 2021-02-09 11:37:41 +01:00
attachLatest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
blockUsers.php Use a constant for 'Maintenance script' username 2021-05-03 23:34:26 +02:00
categoryChangesAsRdf.php Use rc_new_name_timestamp index name unconditionally 2021-05-05 22:40:51 +01:00
changePassword.php maintenance: Move username/userid validation into Maintenance class 2021-07-13 15:39:04 +01:00
checkBadRedirects.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
checkComposerLockUpToDate.php
checkDependencies.php Update Legoktm's email address 2021-05-02 05:39:37 +00:00
checkImages.php
checkUsernames.php Use UserNameUtils in maintenance scripts 2020-10-25 21:52:56 +00:00
cleanupBlocks.php Drop hard-deprecated and unused DatabaseBlock::chooseBlock 2021-05-25 16:52:05 -07:00
cleanupCaps.php maintenance: Move cleanupTable from .inc to .php 2020-09-25 17:36:39 +01:00
cleanupEmptyCategories.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupImages.php Same code style and formatting for exists-style SQL queries 2021-08-12 11:37:58 +02:00
cleanupInvalidDbKeys.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupPreferences.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupRemovedModules.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupRevActorPage.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupSpam.php Hard deprecate User group methods 2021-07-23 15:00:16 +03:00
cleanupTitles.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupUploadStash.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
cleanupUsersWithNoId.php Use array_fill_keys() instead of array_flip() if that reflects the developer's intention 2021-06-15 00:11:10 +00:00
cleanupWatchlist.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
clearInterwikiCache.php
CodeCleanerGlobalsPass.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
CommandLineInc.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
compareParserCache.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
compareParsers.php Remove usages of global function wfDiff() 2020-07-22 08:00:08 +01:00
convertExtensionToRegistration.php
copyFileBackend.php
copyJobQueue.php
createAndPromote.php Create new UserGroupManager::addUserToMultipleGroups method 2021-08-30 10:24:46 -04:00
createBotPassword.php Validate max length of bp_restrictions and bp_grants 2020-12-05 02:10:01 +00:00
deduplicateArchiveRevId.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
deleteArchivedFiles.php Same code style and formatting for exists-style SQL queries 2021-08-12 11:37:58 +02:00
deleteArchivedRevisions.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
deleteAutoPatrolLogs.php Remove unneeded explicit true/false inside conditions 2021-08-17 21:52:34 +02:00
deleteBatch.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
deleteDefaultMessages.php Hard deprecate User group methods 2021-07-23 15:00:16 +03:00
deleteEqualMessages.php Hard deprecate User group methods 2021-07-23 15:00:16 +03:00
deleteLocalPasswords.php
deleteOldRevisions.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
deleteOrphanedRevisions.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
deleteSelfExternals.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
deleteTag.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
doMaintenance.php rdbms: Move setLBFactoryTriggers from doMaintenance to service wiring 2021-04-27 23:35:20 +01:00
Doxyfile docs: Improve Doxygen aliases and map more tool annotations to @noop 2021-03-17 23:33:01 +00:00
dumpBackup.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
dumpCategoriesAsRdf.php Merge "don't include null page ids in query list for category dumps" 2020-09-09 19:25:28 +00:00
dumpIterator.php WikiImporter: inject services 2021-05-24 23:10:07 +02:00
dumpLinks.php
dumpTextPass.php
dumpUploads.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
edit.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
emptyUserGroup.php emptyUserGroup.php: handle more than 5000 users 2020-09-16 12:56:02 -07:00
eraseArchivedFile.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
eval.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
exportSites.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
fetchText.php docs: Use interface instead of real types in documentation 2021-08-26 23:57:31 +00:00
fileOpPerfTest.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
findBadBlobs.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
findClasses.php Add script for resolving class names to files 2021-04-16 11:04:39 +00:00
findDeprecated.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
findMissingActors.php Schema migration for revison_actor_temp table removal 2021-07-14 08:29:04 +10:00
findMissingFiles.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
findOrphanedFiles.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
fixDefaultJsonContentPages.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
fixDoubleRedirects.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
fixExtLinksProtocolRelative.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
fixMergeHistoryCorruption.php Improvements to fixMergeHistoryCorruption.php 2021-06-29 11:33:35 +10:00
fixTimestamps.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
fixUserRegistration.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
formatInstallDoc.php ParserOptions: Deprecate fallback to $wgUser 2020-12-16 09:03:29 +00:00
generateJsonI18n.php phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
generateLocalAutoload.php
generateSchemaChangeSql.php Add index on oldimage.oi_timestamp 2021-05-29 20:44:32 +02:00
generateSchemaSql.php Remove custom table options from 'revision' table 2021-05-23 21:57:04 +01:00
generateSitemap.php Replace deprecated Language function in generateSitemap.php script 2021-08-04 02:58:28 +02:00
getConfiguration.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
getLagTimes.php
getReplicaServer.php
getText.php getText.php: add --revision option 2021-02-13 13:37:13 +01:00
importDump.php WikiImporter: inject services 2021-05-24 23:10:07 +02:00
importImages.php Merge "Remove trailing dot/space from some exception messages and output strings" 2021-08-16 17:40:55 +00:00
importSites.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
importSiteScripts.php Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
importTextFiles.php Use a constant for 'Maintenance script' username 2021-05-03 23:34:26 +02:00
initEditCount.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
initSiteStats.php More master -> primary documentation and internal var renaming 2021-07-15 11:20:20 +01:00
initUserPreference.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
install.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
interwiki.list Modify meatballwiki url in default interwiki table 2021-01-26 23:45:29 +09:00
invalidateBotPasswords.php Add maintenance script to invalidate a users bot passwords 2021-07-13 15:39:11 +01:00
invalidateUserSessions.php Fix class name of InvalidateUserSessions 2021-08-23 19:03:39 +01:00
jsparse.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
lag.php phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
Maintenance.php Make sure RUN_MAINTENANCE_IF_MAIN is defined in tests. 2021-01-19 19:09:31 +00:00
Makefile
makeTestEdits.php Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
manageForeignResources.php manageForeignResources: Use Maintenance::fatalError, not exceptions 2021-05-10 21:48:29 +00:00
manageJobs.php Define a batch size in maintenance/manageJobs.php 2021-03-09 16:50:51 +01:00
mcc.php build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
mctest.php
mergeMessageFileList.php maintenance: Avoid missing l10n cache error in mergeMessageFileList 2021-03-02 21:41:23 -08:00
migrateActors.php
migrateArchiveText.php Factor out LoggedUpdateMaintenance::setForce() 2021-06-24 16:21:53 +10:00
migrateComments.php Use array_fill_keys() instead of array_flip() if that reflects the developer's intention 2021-06-15 00:11:10 +00:00
migrateFileRepoLayout.php Replace getMasterDB methods with getPrimaryDB 2021-07-14 16:21:04 -07:00
migrateImageCommentTemp.php Factor out LoggedUpdateMaintenance::setForce() 2021-06-24 16:21:53 +10:00
migrateRevisionActorTemp.php Schema migration for revison_actor_temp table removal 2021-07-14 08:29:04 +10:00
migrateUserGroup.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
moveBatch.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
mwdoc-filter.php
mwdocgen.php Remove dead variables and functions and unneeded parenthesis 2021-08-13 21:41:59 +02:00
mwjsduck-gen
mysql.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
namespaceDupes.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
nukeNS.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
nukePage.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
orphans.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
pageExists.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
parse.php Hard deprecate calling ParserOptions::newCanonical with no parameters 2020-06-15 23:11:45 +00:00
patchSql.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateArchiveRevId.php Support fluent interface for PageUpdater 2021-07-29 12:09:37 -04:00
populateBacklinkNamespace.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateChangeTagDef.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateContentTables.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateExternallinksIndex60.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateFilearchiveSha1.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateImageSha1.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateInterwiki.php Avoid using deprecated wfGetDB() in two maintenance scripts 2021-07-07 16:42:15 +02:00
populateIpChanges.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populatePPSortKey.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateRecentChangesSource.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateRevisionLength.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateRevisionSha1.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
preprocessorFuzzTest.php build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
protect.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
pruneFileCache.php Fix description for pruneFileCache.php 2020-09-18 22:53:01 +00:00
purgeChangedFiles.php
purgeChangedPages.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
purgeExpiredBlocks.php purgeExpiredBlocks.php: Update call to deprecated DatabaseBlock::purgeExpired() 2020-12-24 17:11:57 +00:00
purgeExpiredUserrights.php Hard-deprecate UserGroupMembership methods replaced by manager 2020-06-12 14:36:26 -07:00
purgeExpiredWatchlistItems.php
purgeList.php Replace deprecated Title::getCdnUrls 2020-11-03 11:58:05 +01:00
purgeMessageBlobStore.php rebuildLocalisationCache: Add --skip-message-purge and accompanying script 2021-04-07 00:36:59 +01:00
purgeModuleDeps.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
purgeOldText.php
purgePage.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
purgeParserCache.php purgeParserCache.php: Implement --tag for purging one server only 2021-06-24 18:01:27 +01:00
README
reassignEdits.php Schema migration for revison_actor_temp table removal 2021-07-14 08:29:04 +10:00
rebuildall.php
rebuildFileCache.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
rebuildImages.php Manual and automatic image metadata reserialization 2021-06-26 22:50:17 +00:00
rebuildLocalisationCache.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
rebuildmessages.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
rebuildrecentchanges.php Avoid using deprecated wfGetDB() in two maintenance scripts 2021-07-07 16:42:15 +02:00
rebuildtextindex.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
recountCategories.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
refreshExternallinksIndex.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
refreshFileHeaders.php
refreshImageMetadata.php Add --sleep option to refreshImageMetadata.php 2021-06-29 21:10:41 +02:00
refreshLinks.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
removeInvalidEmails.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
removeUnusedAccounts.php Hard deprecate User group methods 2021-07-23 15:00:16 +03:00
renameDbPrefix.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
renameRestrictions.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
renderDump.php WikiImporter: inject services 2021-05-24 23:10:07 +02:00
resetAuthenticationThrottle.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
resetPageRandom.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
resetUserEmail.php Make stricter type checks on user email and real name 2021-04-01 15:21:41 -06:00
resetUserTokens.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
rollbackEdits.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
runBatchedQuery.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
runJobs.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
runScript.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
shell.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
showJobs.php More master -> primary documentation and internal var renaming 2021-07-15 11:20:20 +01:00
showSiteStats.php
sql.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
Sqlite.php Remove unneeded explicit true/false inside conditions 2021-08-17 21:52:34 +02:00
SqliteMaintenance.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
syncFileBackend.php Avoid Status/StatusValue mismatch in syncFileBackend maintenance script 2021-08-27 01:02:42 +02:00
TableCleanup.php TableCleanup: stop writing to $wgUser 2021-06-02 07:04:23 +00:00
tables-generated.sql Rename change_tag indexes to have ct_ prefix 2021-06-08 17:57:15 +01:00
tables.json Rename change_tag indexes to have ct_ prefix 2021-06-08 17:57:15 +01:00
tables.sql Migrate searchindex to abstract schema 2021-05-27 15:01:24 +02:00
tidyUpT39714.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
undelete.php maintenance scripts: Reduce direct references to $wgUser 2020-06-05 01:40:34 +00:00
update-keys.sql
update.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
updateArticleCount.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
updateCollation.php Remove dead variables and functions and unneeded parenthesis 2021-08-13 21:41:59 +02:00
updateCredits.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
updateExtensionJsonSchema.php
updateRestrictions.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
updateSearchIndex.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
updateSpecialPages.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
uppercaseTitlesForUnicodeTransition.php Use a constant for 'Maintenance script' username 2021-05-03 23:34:26 +02:00
userOptions.php userOptions.php: allow specifying a user ID range to run on 2021-06-02 22:51:35 +02:00
validateRegistrationFile.php
version.php maintenance: Print version of MediaWiki on the command prompt 2020-08-23 23:20:44 +00:00
view.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
wrapOldPasswords.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00

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