README 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. == MediaWiki Maintenance ==
  2. The .sql scripts in this directory are not intended to be run standalone,
  3. although this is appropriate in some cases, e.g. manual creation of blank tables
  4. prior to an import.
  5. Most of the PHP scripts need to be run from the command line. Prior to doing so,
  6. ensure that the LocalSettings.php file in the directory above points to the
  7. proper installation.
  8. Certain scripts will require elevated access to the database. In order to
  9. provide this, first create a MySQL user with "all" permissions on the wiki
  10. database, and then set $wgDBadminuser and $wgDBadminpassword in your
  11. LocalSettings.php
  12. === Brief explanation of files ===
  13. A lot of the files in this directory are PHP scripts used to perform various
  14. maintenance tasks on the wiki database, e.g. rebuilding link tables, updating
  15. the search indices, etc. The files in the "archives" directory are used to
  16. upgrade the database schema when updating the software. Some schema definitions
  17. for alternative (as yet unsupported) database management systems are stored
  18. here too.
  19. The "storage" directory contains scripts and resources useful for working with
  20. external storage clusters, and are not likely to be particularly useful to the
  21. vast majority of installations. This directory does contain the compressOld
  22. scripts, however, which can be useful for compacting old data.
  23. === Maintenance scripts ===
  24. As noted above, these should be run from the command line. Not all scripts are
  25. listed, as some are Wikimedia-specific, and some are not applicable to most
  26. installations.
  27. changePassword.php
  28. Reset the password of a specified user
  29. cleanupSpam.php
  30. Mass-revert insertion of linkspam
  31. createAndPromote.php
  32. Create a user with administrator (and optionally, bureaucrat) permissions
  33. deleteOldRevisions.php
  34. Erase old revisions of pages from the database
  35. dumpBackup.php
  36. Backup dump script
  37. edit.php
  38. Edit a page to change its content
  39. findHooks.php
  40. Find hooks that aren't documented in docs/hooks.txt
  41. importDump.php
  42. XML dump importer
  43. importImages.php
  44. Import images into the wiki
  45. moveBatch.php
  46. Move a batch of pages
  47. namespaceDupes.php
  48. Check articles name to see if they conflict with new/existing namespaces
  49. nukePage.php
  50. Wipe a page and all revisions from the database
  51. reassignEdits.php
  52. Reassign edits from one user to another
  53. rebuildImages.php
  54. Update image metadata records
  55. rebuildmessages.php
  56. Update the MediaWiki namespace after changing site language
  57. rebuildtextindex.php
  58. Rebuild the fulltext search indices
  59. refreshLinks.php
  60. Rebuild the link tables
  61. removeUnusedAccounts.php
  62. Remove user accounts which have made no edits
  63. runJobs.php
  64. Immediately complete all jobs in the job queue
  65. undelete.php
  66. Undelete all revisions of a page
  67. update.php
  68. Check and upgrade the database schema to the current version
  69. updateRestrictions.php
  70. Update pages restriction to the new schema
  71. userOptions.php
  72. Change user options