Other languages:

MediaWiki version:


createCommonPasswordCdb.php file creates a common password CDB database. It takes a file like as an example.


As of 9cd8d3e2d7ef:

Generate CDB file of common passwords

Usage: php createCommonPasswordCdb.php [--conf|--dbgroupdefault|--dbpass|--dbuser|--globals|--help|--limit|--memory-limit|--mwdebug|--profiler|--quiet|--server|--wiki] <inputfile> <output>

Generic maintenance parameters:
    --help (-h): Display this help message
    --quiet (-q): Whether to suppress non-error output
    --conf: Location of LocalSettings.php, if not default
    --wiki: For specifying the wiki ID
    --globals: Output globals at the end of processing for debugging
    --memory-limit: Set a specific memory limit for the script, "max"
        for no limit or "default" to avoid changing it
    --server: The protocol and server name to use in URLs, e.g. This is sometimes necessary because server name
        detection may fail in command line scripts.
    --profiler: Profiler output format (usually "text")
    --mwdebug: Enable built-in MediaWiki development settings

Script dependant parameters:
    --dbuser: The DB user to use for this script
    --dbpass: The password to use for this script
    --dbgroupdefault: The default DB group to use.

Script specific parameters:
    --limit (-l): Max number of passwords to write

    <inputfile>: List of passwords (one per line) to use or - for stdin
    <output>: Location to write CDB file to (Try