Sometimes you might encounter an issue with accessing your WordPress admin area simply because you forgot the password and/or your WordPress doesn’t send a password reset link.
In this case, you might need to hack your way in, in this guide we are showing you how to gain back the WP admin access using phpMyAdmin or any other MySQL admin tool at your disposal.
How to change WordPress admin password in phpMyAdmin
Basically, every host has some work of phpMyAdmin installed on their servers. If you are using cPanel, just log into your cPanel account and navigate to the Mysql section. See the image below.
Once you click on the phpMyAdmin link, it will load in the new tab. You will see all your databases listed here. Find the right database that is used by your WordPress website and click to open it.
You will see the database tables listed in the row. Here just look for the database table wp_users and click to open it. If you are using WordPress with a custom database prefix, your users table could be named wp123_users or similar.
Once you open up the wp_users database table for editing, you will see the registered user accounts in the list. Find the admin user account or the account that you want to change the password for and click on the edit.
This will open up the admin user database details like username, password, email, etc. Scroll to the record entitled user_pass. You will see an encoded password in the password field. Type your new password in plain text here, select the MD5 from the dropdown menu, and click on the Go button.
This will encrypt the password in MD5 format now just get back to your WP admin page and log in using your new password.
You can follow this guide no matter if you are using cPanel or not. Basically, every host offers some form of phpMyAdmin access, if it’s not located in your hosting panel, try reaching your host and ask them to provide access for it.