What if, your email associated with your WordPress profile lost its access and at the same time you forget your WordPress password. What will you do now, simple read how to reset WordPress Password when email access lost and gain your access easily.
Here we will learn 2 different methods to gain access of profile, 1. Using WordPress Plugin & 2. Using Server and Database backend.
reset WordPress Password when email access lost
So you’ve forgotten your password as well as access of your email which is associated with profile is lost. As admin of website you have login access of your server and database, this are the requirements for resetting password using backend method.
Recover Password Using WordPress Plugin
There are various plugins available on WordPress platform, which can be used for many tasks. In those plugins you can also get SMS OTP verification plugin, which connects to your mobile and whenever you want to login website or reset the password, then an OTP comes on your mobile number for verification. We can also reset the password by using miniOrange SMS OTP Verification plugin, so let’s use this plugin to reset password without email.
- Install Plugin
In website dashboard move to left panel there click on Plugins, after that move mouse click on Add Plugin Button.
Now search ‘MiniOrange SMS OTP Verification’ and in result you will get the desired plugin, click on Install.
2. Configure Plugin
Finally plugin is install, we need to configure so that password reset over OTP is enable. Go to the AddOns tab, Select WordPress Password Reset Over OTP AddOn, and click on the Settings button.
Enable the checkbox next to WordPress Password Reset using OTP. Select Enable Phone Verification for a password reset through the phone. Enter the Phone Meta Key. MetaKey is the key against which the additional value is stored in the usermeta table.
While enabling Phone verification, you can also opt for Use only Phone Number. Do not allow username or email to reset the password by enabling the checkbox.
Click on the Save Settings button.
3. Recover Password
Navigate to the WordPress Password reset page. Enter your registered Username/ Phone Number to get OTP on mobile number and click on the Reset Password button.
Enter the OTP received and click on Verify button.
Create a new desired password accordingly and click on the Reset Password button, We can see the message displaying the password has been successfully changed. Here we had completed our task.
Recover Password Using Server & Database Backend
Every programmer working on WordPress know that plugin uses resource from server that’s why many of us don’t use plugin, instead of it we code ourselves as per requirements. Similarly here we will use server and database backend to recover website password. Lets start and learn with us, how to recover password using server & database backend. In this tutorial we are taking digitalocean server and adminer for database access.
- How to install Adminer on Server
Todo this you have to first open adminer database management website, there you will get latest .php file. Click on that file and download on your local system (Computer/laptop).
Now access your server using any FTP tool and upload this file in root folder of website. For example, If your website data is in DELTA folder and URL is www.xyz.com and your adminer file name is database.php. Then to access your database you have to use this link: www.xyz.com/database.php
Now open www.xyz.com/database.php link there you have to enter the credential of database, if you don’t know credentials, then you can get it from wp-config.php file, wp-config. php file is usually located in the root folder of your website with other folders like /wp-content/.
Add server name, user name, password and database name, as shown below.
As dashboard is open, move to left panel. There you will get a table name with _user, open that table.
Here comes the main game, now click on edit which is available in left corner of the table. There you have to change user_pass box. But before doing this you need to encrypt the passwords, for doing this you can use tool available online for this like WordPress Password Hash Generator.
Copy Hash password and paste in user_pass column of user table in database.
Finally, click on save button and now go to WordPress website login page. Use your username and new password to access website, remember to change email address whose access is lost.
Thanks everyone to read how to reset WordPress Password when email access lost, hope you understand everything which is explained in this article. If you have any doubt then comment below, we will reply as soon as possible.