Manual:checkUsernames.php

From MediaWiki.org
Jump to: navigation, search

Other languages:
català • ‎Deutsch • ‎English • ‎español • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎Nederlands • ‎polski • ‎português • ‎português do Brasil

Details[edit]

checkUsernames.php file is a maintenance script that is used to check that all usernames in the database (userManual:user table table) are actually valid. Existing usernames can become invalid if User::isValidUserName() is altered or if $wgMaxNameCharsManual:$wgMaxNameChars is changed.

Usage[edit]

php checkUsernames.php

In case invalid usernames are found, the script returns the user_id and the username for each of the affected users.