Skip to content
Tech VideoStack
  • Programming
    • Java
    • PHP
  • Video Editing
    • DaVinci Resolve
  • Software
    • Visual Studio Code
    • WordPress
    • Databases
      • MySQL
      • SQLite
    • XAMPP
    • Android Studio
    • Microsoft Access
    • Photoshop
  • Hardware
  • General
    • Hosting
    • Microsoft Windows
      • Windows 10
      • Windows 11
  • Smartphones
    • Apple
    • Android
  • Digital Products
  • Policies
    • Privacy Policy
    • Cookie Policy
    • GDPR Policy
    • Terms and Conditions
    • Disclaimer
  • Contact Us

What to do if you forgot WordPress Password and Username?

July 30, 2022February 10, 2022 by Tech VideoStack

Table of Contents

In this article I will show you one solution on how to recover, in case you forgot WordPress Password.

This method works even if you forgot WordPress password and username. You can use this method also if you forgot WordPress password on localhost, as well as in the shared server.

Note: To be able to use use this method to reset your WordPress password, you must have access to the phpMyAdmin or your MySQL server and database

incorrect password WordPress login

Login to phpMyAdmin

First you need to log in to your phpMyAdmin to be able to see the WordPress database and tables.

If you are in a shared hosting and using the cPanel, then phpMyAdmin can be accessed by clicking the button as below:

find phpMyAdmin in cPanel

It should work similar if you are using other web hosting control panels, like Plesk or any other.

How to find the database of my WordPress website?

There are many ways to find which database is linked to certain WordPress website.

You can do it from the “wp-config.php” file, going through each database by checking the “siteurl” option field in the options table etc.

Since we are already in the phpMyAdmin, I will show you how to find the “siteurl” in the options table.

In phpMyAdmin click each database to open the table list, then search for the (prefix)_options table (where prefix is whatever prefix your tables are using, so the prefix is the word that comes before the underline “_” symbol of the table name)

click database name to open table list in phpMyAdmin

After options table is opened, usually “siteurl” is the first “option_name“. In the “option_value” field, you will see the site name.

siteurl in wp_options table WordPress

How to find the WordPress username and password?

Once you are sure that you are in the correct database, then you need to open the users table (similarly as the options table, it will be proceeded from and prefix and underline symbol ex. wp_users).

wp_users table in WordPress

In this table you will see all the WordPress username and passwords.

There are other columns as well, but you will need only the “user_login” and “user_pass” fields, but of course you can also change other fields if you want (the user_email for example).

user_login and user_pass in wp_users table in WordPress

What to do next?

Even though you can see the “user_pass” (which looks something like this: $P$BRqPT9szMoNYtJrn9j9Rm3W/Vxy8ab. ), you are not done yet, because the string in the “user_pass” column is the encrypted representation of the password.

To be able to login, you need to know the decrypted string.

But, since, it is impossible to decrypt the password, because WordPress uses, what are known, one way encrypted passwords, which means the passwords are only encrypted and can’t be decrypted.

Using a WordPress Password Hash Generator

In this step you need to look for an online WordPress Password Hash Generator.

There are many websites that offer this service, but you can use this one: https://www.useotools.com/wordpress-password-hash-generator

In the “input password” field insert your new password string (always make sure that your password is a complex string, by having lowercase and uppercase characters, number, special characters etc.)

Once you input your new password, check the “Image Verification checkbox of reCaptcha” and hit Generate Hash.

usetools wordpress password hash generator

In the next page, you will get your password string and the hash value (which looks something like this $P$BtaFjPOYGvUeK80kz0N/mFpe0.rfrd/ as an example).

Copy the hash value and go back to your users tables in phpMyAdmin.

generated password and hash value usetools wordpress password hash generator

Edit the row of the user whose password you want to update and then paste the hash value in the “user_pass” column and save the record.

paste hash value in the wp_users table

And that’s it, you now know your WordPress username and have reset your password.

Login to WordPress

Now, go to your WordPress login page, insert your username and your newly created password.

Be careful: In this page you need to use the actual password string, not the hash value. The hash value is only used to update the users table in phpMyAdmin
(in our case we used MySecretPassword123 as actual password and the string: is the hashed value)

login to WordPress website

Conclusion

Hopefully this will help you to restore your access in case you forgot WordPress password and username.

Thanks for reading the article and see you in the next article.

Loading

Related Tutorials:

XAMPP - Open localhost and MySQL - CREATE and DROP Table - TutorialXAMPP – Open localhost and MySQL – CREATE and DROP Table – Tutorial wordpress plugin directoryChange a User Profile Picture in WordPress using a Plugin XAMPP localhost in Android DeviceLoad XAMPP localhost in Android device – Tutorial How to Easily Check WordPress Version
Categories Software, Wordpress Tags MySQL database, MySQL Server, PHPMYADMIN, reset WordPress login credentials, wordpress, WordPress password, WordPress password and username, WordPress password hash generator, WordPress username
How to Easily Check WordPress Version
Looping Arrow Animation in DaVinci Resolve

Subscribe to YouTube

Techvideostack on KO-FI

Categories

  • Android
  • Android Studio
  • Apple
  • CapCut
  • Databases
  • DaVinci Resolve
  • General
  • Hardware
  • Hosting
  • Java
  • Microsoft Access
  • Microsoft Windows
  • MySQL
  • Photoshop
  • PHP
  • Programming
  • Smartphones
  • Software
  • SQLite
  • Video Editing
  • Visual Studio Code
  • Windows 10
  • Wordpress
  • XAMPP

Menu

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • TERMS AND CONDITIONS
  • GDPR Policy
© 2025 Tech VideoStack • Built with GeneratePress
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT