Jump to content

手册:removeUnusedAccounts.php

From mediawiki.org
This page is a translated version of the page Manual:RemoveUnusedAccounts.php and the translation is 41% complete.
MediaWiki版本:
1.5.5

Details

removeUnusedAccounts.php是一个维护脚本An unused account is one which has no edits, no deleted edits, no log entries (aside from user-creation), and no current/old uploads.

You can use deleteArchivedRevisions.php to first remove deleted revisions (e.g. after a massive vandalism/spam attack) and run removeUnusedAccounts.php afterwards.

小心! 小心: If you use a Shared database, this script can damage your database, because it will remove users if they appear unused in the current database, without checking if they have be used on another database.

Options

选项/参数 描述 Required?
--delete 删除账户。 Running it without the parameter --delete, the script will only list the unused accounts. Optional
--ignore-groups List of comma-separated groups to exclude. Accounts from these groups will not be removed, even if they are unused. Optional
--ignore-touched Skip accounts touched in last N days. 如果未设置,默认为“1”。 If "0" is given the script will check/remove all unused accounts up to the current date, including accounts created seconds ago. Optional


用法

php maintenance/run.php removeUnusedAccounts [ --delete| --ignore-groups| --ignore-touched ]
在MediaWiki 1.39.16 及更早版本中,您必须通过php maintenance/脚本名称.php调用维护脚本,而不是php maintenance/run.php 脚本名称
Terminal

By default, this script lists unused accounts without deleting them. To delete the unused accounts, run this script with --delete.

Terminal

See also