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!