Manual:ChangePassword.php/en

changePassword.php can be used to change the password of a user on your wiki.

Usage
An example:

Usernames and passwords can have spaces, which will need to be protected from your shell (be it bash or ; see Troubleshooting, below):

To display a help message:

Options
(the user's name)

(the user's new password)

(displays help message)

Troubleshooting

 * This script may not work if you are using memcached on your MediaWiki installation. You can restart memcached to make it clear its cache and allow you to login again.
 * Windows has special challenges with parsing double-quoted strings, as when a username or password contains spaces in the second example above. You may find some illumination on this issue here (autohotkey.net)&mdash;or it might just make your brain hurt.
 * Occasionally triple and quadruple sets of double quotes will solve your problems with Windows' command shell,  . You may be happier, though, to try Cygwin and follow the Unix conventions for quoting strings, which are a bit more sane.