wiki.techinc.nl/maintenance
Aaron Schulz 950cf6016c Rename DB_SLAVE constant to DB_REPLICA
This is more consistent with LoadBalancer, modern, and inclusive
of master/master mysql, NDB cluster, and MariaDB galera cluster.

The old constant is an alias now.

Change-Id: I0b37299ecb439cc446ffbe8c341365d1eef45849
2016-09-05 22:55:53 -07:00
..
archives Remove patch-pl-tl-il-unique.sql 2016-08-26 05:09:12 -04:00
benchmarks Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
dev Merge "Revert "Add executable rights for executable (bash) files"" 2015-08-07 07:38:00 +00:00
dictionary ApiMain: Correct typo in variable name 2016-03-28 16:45:02 +00:00
hhvm Add a script to build an HHVM RepoAuthoritative bytecode file 2016-08-16 13:32:19 +10:00
jsduck Rename 'slider' gallery mode to 'slideshow' 2016-07-12 14:48:58 +01:00
language Chinese Conversion Table Update 2016-5 2016-07-16 14:25:30 +08:00
locking Removed expiremental LSLockManager class 2014-01-17 15:16:01 -08:00
mssql Merge "Add rc_name_type_patrolled_timestamp index" 2016-08-11 01:58:49 +00:00
oracle Add rc_name_type_patrolled_timestamp index 2016-07-14 12:01:04 -04:00
postgres Add rc_name_type_patrolled_timestamp index 2016-07-14 12:01:04 -04:00
resources Follow-up f9b4bbff: Fix typo'ed variable name 2016-05-03 19:08:15 -04:00
sqlite/archives Add id field to watchlist db table 2016-02-18 21:01:01 +00:00
storage Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
term Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
.htaccess
7zip.inc Update formatting in maintenance/ (1/4) 2014-04-23 20:08:06 +02:00
attachLatest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
backup.inc Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
backupPrefetch.inc Fix issues identified by SpaceBeforeSingleLineComment sniff 2015-09-26 23:06:52 +00:00
cdb.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
changePassword.php Remove $wgDisableAuthManager 2016-08-09 23:00:27 +00:00
checkBadRedirects.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
checkComposerLockUpToDate.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
checkImages.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
checkLess.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
checkSyntax.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
checkUsernames.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
cleanupAncientTables.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
cleanupBlocks.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
cleanupCaps.php Let cleanupCaps.php clean up when $wgCapitalLinks is set to true 2016-08-17 04:15:32 +00:00
cleanupEmptyCategories.php Only store currently-existing categories in the categories table 2016-07-18 12:52:19 -04:00
cleanupImages.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
cleanupPreferences.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
cleanupRemovedModules.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
cleanupSpam.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
cleanupTable.inc Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
cleanupTitles.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
cleanupUploadStash.php Clean up user handling in UploadStash 2016-09-02 17:40:49 +00:00
cleanupWatchlist.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
clearInterwikiCache.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
commandLine.inc Register importImages options without arguments as actual maintenance script options so they are usable 2016-03-12 00:23:43 +00:00
compareParserCache.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
compareParsers.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
convertExtensionToRegistration.php registration: Fix adding $formerGlobals in conversion script 2016-08-08 02:56:39 -07:00
convertLinks.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
convertUserOptions.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
copyFileBackend.php Drop check for mbstring in copyFileBackend maintenance script 2016-06-30 11:58:20 -07:00
copyJobQueue.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
createAndPromote.php Remove $wgDisableAuthManager 2016-08-09 23:00:27 +00:00
createCommonPasswordCdb.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
deleteArchivedFiles.php Add missing file locks to deleteArchivedFiles.php 2016-07-20 22:05:59 -07:00
deleteArchivedRevisions.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
deleteBatch.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
deleteDefaultMessages.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
deleteEqualMessages.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
deleteOldRevisions.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
deleteOrphanedRevisions.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
deleteRevision.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
deleteSelfExternals.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
doMaintenance.php Use transaction listener to run DeferredUpdates in CLI mode 2016-09-01 03:30:00 +00:00
Doxyfile Doxygen: Disable verbose output 2015-11-23 20:33:01 +00:00
dumpBackup.php add option to XML dump stubs of page ranges with explicit rev_id ordering 2016-06-22 22:05:55 +03:00
dumpIterator.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
dumpLinks.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
dumpTextPass.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
dumpUploads.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
edit.php Use english messages for background use of Status::getWikiText 2016-04-12 20:01:44 +02:00
eraseArchivedFile.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
eval.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
exportSites.php Introduce top level service locator. 2016-04-02 18:07:28 +03:00
fetchText.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
fileOpPerfTest.php Remove Profiler specific code from fileOpPerfTest 2016-07-01 01:36:33 +00:00
findDeprecated.php Upgrade PhpParser to 2.1 and update findDeprecated.php 2016-08-15 23:10:42 +00:00
findHooks.php Support short array syntax in findHooks.php 2016-06-13 21:23:39 +00:00
findMissingFiles.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
findOrphanedFiles.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
fixDefaultJsonContentPages.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
fixDoubleRedirects.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
fixExtLinksProtocolRelative.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
fixTimestamps.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
fixUserRegistration.php Change "slave" => "replica DB" in /maintenance 2016-09-06 00:13:08 +00:00
formatInstallDoc.php
generateJsonI18n.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
generateLocalAutoload.php Structure test: Add autoload.php order check 2016-08-03 09:50:27 +00:00
generateSitemap.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
getConfiguration.php Replace uses of join() by implode() 2016-03-08 18:24:16 +00:00
getLagTimes.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
getReplicaServer.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
getSlaveServer.php Change "slave" => "replica DB" in /maintenance 2016-09-06 00:13:08 +00:00
getText.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
importDump.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
importImages.inc Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
importImages.php Change "slave" => "replica DB" in /maintenance 2016-09-06 00:13:08 +00:00
importSites.php Introduce top level service locator. 2016-04-02 18:07:28 +03:00
importSiteScripts.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
importTextFiles.php Make importTextFiles.php work with wildcards on the Windows shell 2016-07-16 12:29:11 +00:00
initEditCount.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
initSiteStats.php initSiteStats.php: Make it obvious you need to use --update 2016-03-08 11:11:06 -08:00
install.php Maintenance: Use __DIR__ instead of dirname( __FILE__ ) 2016-06-14 20:44:30 -04:00
interwiki.list Add Wikidata to default interwikis 2016-07-24 16:48:46 -07:00
interwiki.sql Add Wikidata to default interwikis 2016-07-24 16:48:46 -07:00
invalidateUserSessions.php Handle session reset errors in invalidateSessionsForUser.php 2016-06-18 11:01:20 +00:00
jsparse.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
lag.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
Maintenance.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
Makefile
makeTestEdits.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
mcc.php Try to fix some other broken-looking legacy maintenance script options 2016-03-12 00:47:36 +00:00
mctest.php Remove used of deprecated MemCachedClientforWiki 2016-04-03 11:52:50 +03:00
mergeMessageFileList.php Support multiple extension-dir paths to be passed to mergeMessageFileList 2016-03-16 15:35:07 -05:00
migrateFileRepoLayout.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
migrateUserGroup.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
minify.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
moveBatch.php Use english messages for background use of Status::getWikiText 2016-04-12 20:01:44 +02:00
mwdoc-filter.php Doxygen: Rewrite mwdoc-filter to fix bug with slashes in comments 2015-11-23 23:02:13 +00:00
mwdocgen.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
mwjsduck-gen Rename JSDuck config to standard 'jsduck' 2015-03-09 18:10:00 +00:00
namespaceDupes.php Replace DataUpdate::doUpdates() callers in maintenance/ 2016-09-01 21:30:34 -07:00
nukeNS.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
nukePage.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
orphans.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
pageExists.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
parse.php Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
patchSql.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateBacklinkNamespace.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateCategory.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateContentModel.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateFilearchiveSha1.php Change "slave" => "replica DB" in /maintenance 2016-09-06 00:13:08 +00:00
populateImageSha1.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateLogSearch.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateLogUsertext.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateParentId.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateRecentChangesSource.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateRevisionLength.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
populateRevisionSha1.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
preprocessDump.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
preprocessorFuzzTest.php Fix a few incorrect annotations 2016-06-30 17:50:40 -07:00
protect.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
pruneFileCache.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
purgeChangedFiles.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
purgeChangedPages.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
purgeList.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
purgeOldText.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
purgeParserCache.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
README Remove obsolete showCacheStats.php and showCacheStats.php 2015-12-07 19:49:29 +00:00
reassignEdits.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
rebuildall.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
rebuildFileCache.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
rebuildImages.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
rebuildLocalisationCache.php Fix RebuildLocalisationCache bug from MediaWikiServices 2016-04-11 19:16:31 +00:00
rebuildmessages.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
rebuildrecentchanges.php RebuildRecentchanges improvements 2016-04-19 13:52:40 -07:00
rebuildSitesCache.php Introduce top level service locator. 2016-04-02 18:07:28 +03:00
rebuildtextindex.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
refreshFileHeaders.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
refreshImageMetadata.php Defer maybeUpgradeRow() post-send since they can trigger on non-POST 2016-08-11 09:19:09 -07:00
refreshLinks.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
removeInvalidEmails.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
removeUnusedAccounts.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
renameDbPrefix.php Update wfGetDB calls in Maintenance scripts to use getDB() 2016-01-02 16:58:23 +00:00
renderDump.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
resetUserEmail.php resetUserEmail: Allow resetting email without scrambling password 2016-02-18 16:04:49 +00:00
resetUserTokens.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
rollbackEdits.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
runBatchedQuery.php Change "slave" => "replica DB" in /maintenance 2016-09-06 00:13:08 +00:00
runJobs.php Add --wait option for runJobs.php 2016-02-21 09:24:39 +00:00
runScript.php
showJobs.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
showSiteStats.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
sql.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
sqlite.inc Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
sqlite.php SQLite syntax checker: Fix support for multiple files 2016-08-25 21:28:45 -04:00
syncFileBackend.php syncFileBackend.php: ellapsed => elapsed 2016-07-25 10:43:24 -04:00
tables.sql Remove redundant UNIQUE from rev_page_id 2016-08-25 06:30:41 +00:00
tidyUpBug37714.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
undelete.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
update-keys.sql Ignore duplicate key errors in update-keys.sql 2014-09-08 13:29:31 -07:00
update.php update.php: Don't check for mbstring extension 2016-06-15 10:23:21 +00:00
updateArticleCount.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
updateCollation.php Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
updateDoubleWidthSearch.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
updateExtensionJsonSchema.php registration: Convert "config" into an object with metadata 2016-07-13 14:58:00 -07:00
updateRestrictions.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
updateSearchIndex.php Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
updateSpecialPages.php Change "slave" => "replica DB" in /maintenance 2016-09-06 00:13:08 +00:00
userDupes.inc Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
userOptions.inc Rename DB_SLAVE constant to DB_REPLICA 2016-09-05 22:55:53 -07:00
userOptions.php
validateRegistrationFile.php Upgrade justinrainbow/json-schema to ~3.0 2016-08-23 21:22:21 +00:00
wrapOldPasswords.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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