Manual:checkUsernames.php

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.3
<translate> MediaWiki version:</translate>

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 checkUsernames.php

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


Terminal

See also