Manual:CheckUsernames.php/fi
Appearance
| MediaWiki version: | ≥ 1.3 |
| tiedosto MediaWiki: checkUsernames.php | |
|---|---|
| Sijainti: | maintenance/ |
| Lähdekoodi: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Sarjat: | checkUsernames |
Details
checkUsernames.php file is a maintenance script that is used to check that all usernames in the database (user table) are actually valid.
Existing usernames can become invalid if User::isValidUserName() is altered or if $wgMaxNameChars is changed.
Vaihtoehdot
This script does not accept any options.
Usage
php maintenance/run.php checkUsernames
In MediaWiki version 1.43.6 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.In case invalid usernames are found, the script returns the user_id and the username for each of the affected users.
Terminal
$ php maintenance/run.php checkUsernames Found: 1: 'Jay' Found: 2: 'MediaWiki default' Found: 4: 'Maintenance script' Found: 5: 'ScriptImporter'