Manual:ChangePassword.php

changePassword.php can be used to change the password of a user on your wiki. '' Passwords must be at least 10 characters. ''

Usage
An example:

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

To display a help message:

Options

 * (the user's name)
 * (the user's new password)
 * (displays help message)

Troubleshooting

 * If your MediaWiki installation uses a memory cache, such as APC, memcached or Redis, then the user object is cached. Thus after making SQL changes you must flush the cache before a user can log in with the new password.


 * 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 [http://www.autohotkey.net/~deleyd/parameters/parameters.htm#WINCRULESTDQ 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 [http://cygwin.com/ Cygwin] and follow the [http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_03.html Unix conventions] for quoting strings, which are a bit more sane.


 * There are no spaces between the parameter=value in the command line.

This will cause a cryptic error:

Removing the spaces will fix the problem.