Mediawiki/Change User Password

From s23
< Mediawiki
Revision as of 17:06, 25 August 2010 by imported>Kghbln (Undo revision 59595 by SaraLee (Talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How do I change a user's password?[edit]

Assuming that $wgPasswordSalt is set to true (the default), you can use the following SQL query:

UPDATE user SET user_password = MD5(CONCAT(user_id, '-', MD5('somepass'))) WHERE user_name = 'whatever';

Where obviously "somepass" is changed the password you want to set and "whatever" is changed to the user name as it is listed in the table "user".

from [1]