readme

来自「php 开发的内容管理系统」· 代码 · 共 85 行

TXT
85
字号
== 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 tablesprior 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 theproper installation.Certain scripts will require elevated access to the database. In order toprovide this, first create a MySQL user with "all" permissions on the wikidatabase, and then place their username and password in an AdminSettings.phpfile in the directory above. See AdminSettings.sample for specifics on this.=== Brief explanation of files ===A lot of the files in this directory are PHP scripts used to perform variousmaintenance tasks on the wiki database, e.g. rebuilding link tables, updatingthe search indices, etc. The files in the "archives" directory are used toupgrade the database schema when updating the software. Some schema definitionsfor alternative (as yet unsupported) database management systems are storedhere too.The "storage" directory contains scripts and resources useful for working withexternal storage clusters, and are not likely to be particularly useful to thevast majority of installations. This directory does contain the compressOldscripts, 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 arelisted, as some are Wikimedia-specific, and some are not applicable to mostinstallations.	changePassword.php	Reset the password of a specified user	cleanupSpam.php	Mass-revert insertion of linkspam	deleteOldRevisions.php	Erase old revisions of pages from the database	dumpBackup.php	Backup dump script	dumpHTML.php	Produce an HTML dump of a wiki	importDump.php	XML dump importer		importImages.php	Imports images into the wiki		importTextFile.php	Imports the contents of a text file into a wiki page	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	update.php	Check and upgrade the database schema to the current version

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?