How to reset password for Sysop account in MediaWiki

It can happen everyone 🙂 I forgot the password which I have setup of Sysop account in the beginning during installtion of Mediawiki for our team. Today is the situation when I need to log in to MediaWiki as the Sysop account but no password works. Gladly this can be fixed very fast and easy by using this command line 🙂

php /usr/share/mediawiki/maintenance/changePassword.php --user=sysop --password=NewPassword

The script will immediately reset your sysop’s password with what you have entered above. Now you can log in without any problems!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.