Manual:ChangePassword.php

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

Usage
As an example:

Or to display a help message:

Options
--user (the user's name) --password (the user's new password) --help (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 it's cache and allow you to login again.