Skip navigation

I set up mediawiki but unfortunately forgot the admin password and furthermore i hadn’t set up the admin password. So the quick thing to do was to try to try and reset the password via my  phpmyadmin but I couldn’t do so. The user password field is in binary format. See the screenshot below :

resetting-mediawiki

Therefore I run this mysql statement to reset the password:

UPDATE [user] SET user_password = MD5(CONCAT(user_id, ‘-’, MD5(’newpassword‘))) WHERE user_id = uid

Where [user] = users table
uid = user id

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.