Lost Admin Password in WordPress and Email Retrieval also Not working. What to do?

WordPress is undoubtedly the best blogging platform for the professional bloggers due to the availability of large number of plugins which makes the task lot more easier. However, it would be interesting for you to know that, around 75% wordPress users don’t know much about its installation and coding. They only write articles and use plugins. That’s probably the reason why, they fail to fix some common wordPress errors. Last week, I received 5 similar requests in which, users asked me, What should they do after loosing their Admin Password if their password reset link also failed to work. Some of the Questions posted by them are as follows:

Resetting Admin Password in WordPress

Problem 1::

Hello sir. I am in big trouble. I am using a self hosted wordPress blog which was working fine till last week. I am still able to access it but It is not allowing me to enter in the admin panel. I think, I have forgotten my Admin password. I tried to use the password reset link and entered my EMail address as well but i didn’t get any Password Reset link. Kindly help me to reset my password.


Problem 2:

I was trying to find a fix for my problem on google and certainly came on your site. Actually, WordPress is not able to send the password Reset Link to my EMail ID. I am the admin of my Self Hosted WordPress blog and have an access to the cPanel as well. Is there anything, I can do to reset my password?

Today I will provide you a tutorial on solving this kind of issues. Just follow the below given step by step instructions.


How to Reset the Admin Password in WordPress using cPanel?
  • Login into your cPanel account by using your Credentials. The screenshot of the cPanel login screen is given below:

cPanel Login screen

  • After logging into your cPanel Account. Try to find the “Databases” category. Once found, click on “phpMyAdmin” link. The screenshot of the same is given below:

phpMyAdmin in cPanel

  • If you haven’t installed any other software or scripts in your hosting account, you will see only one database i.e your WordPress database. However, If you are using more than one sites or forums or scripts, Open your WordPress Database only.
  • You will see a long list of tables. Just try to find the “wp_users“. Once found, click on “Browse” link. The screenshot of the same is given below:

Reset Admin Password in WordPress

  • Now, you will see the list of all registered users. If you are the admin, move to your username. Once done, click on “Edit” link. For example, my username is “admin” so i found the “admin” user in this list and clicked on the “Edit” link. Below given screenshot shows the same.

users list in the WordPress

  • After clicking on the “Edit” link as shown in the above figure, you will see a form with many textboxes which contains all kind of details which were entered by you during the registration process. The screenshot of the same is shown below:

Reset Admin Password in WordPress

  • As shown in above figure, Move to the “user_pass” table and enter your new password in place of already entered MD5 hash code.
  • Once done, click on the dropdown menu under “Function” and choose “MD5” option from the Menu.
  • Finally, click on the “Go” button and enjoy. Use the same password to log into your admin panel.


From the Editor’s desk
The above mentioned steps are very clear and easy to understand so use it in case, you have lost the admin Password in WordPress and struggling to reset it.
functions.php in WordPressIf you use FTP then login to your account and navigate to “/wp-content/themes/(your currently active wordPress theme name)/” and download the “functions.php” file. Open it and add the below given code after the first “<?php:
In the above code, replace “YourNewPassword” with the password, you want to use for your admin account. 

If you are still facing any kind of problem, ask me via comments.

Ravi Kumar

a:1:{s:13:"administrator";b:1;}’ WHERE user_id=7 AND meta_key=’wp_capabilities

Click Here to Leave a Comment Below 2 comments