It may have happened to many of us who maintain multiple wordpress installations with very secure passwords. One day, we just forget our passwords and then realize that the email setup for the user is invalid, and we cant reset the password through email.
If it happens, there is a technique to reset the password through mysql.
Login to the Phpmyadmin control panel.
Identify the username of the account we’re about to reset from the wp_users table.
Then execute the following sql code in Phpmyadmin:
UPDATE `wp_users` SET `user_pass` = MD5('newpassword') WHERE `user_login` ='username_to_reset_for' LIMIT 1;
You may need to modify the quoted strings for your database.
Voila, now you can login with the new password.
Another GUI based method for PhpMyadmin and other ways to reset password are described in the WordPress Codex.
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.