Magento 2 server<\/a> directly within the Admin panel.<\/p>\n\n\n\nIf you happen to forget your password, simply click on the “Forgot Your Password?” link.<\/p>\n\n\n\n <\/figure>\n\n\n\nFollow these steps to reset the admin password in Magento 2:<\/p>\n\n\n\n
\nProvide the Email Address linked to the Admin account.<\/li>\n<\/ul>\n\n\n\n <\/figure>\n\n\n\n\nClick on “Retrieve Password.” If an account is associated with the provided email address, an email will be sent to facilitate the password reset. To avoid emails being marked as spam, consider enabling SMTP settings.<\/li>\n<\/ul>\n\n\n\n<\/span>Method 2. Change the Password via phpMyAdmin:<\/span><\/h2>\n\n\n\nAt times, accessing your dashboard may be challenging due to reasons like password forgetfulness or a compromised site. However, there’s no need to worry because you can reset the password through phpMyAdmin, a graphical utility tool designed for MySQL database management.<\/p>\n\n\n\n
After logging in to phpMyAdmin, navigate to your Magento database in the left-side list. The database tables are listed there, which you can see in the image below:<\/p>\n\n\n\n <\/figure>\n\n\n\nFind the table that contains the admin user information. This table normally has the name admin_user<\/code>, but it may have a prefix based on your Magento installation.<\/p>\n\n\n\n <\/figure>\n\n\n\nLook for the row corresponding to the Magento admin user whose password you want to change. The username is typically admin<\/code>. Double-click on the password column and copy the value of your cryptographic key. This is the value found between the ‘:’ symbols.<\/p>\n\n\n\nNow, click on the SQL button on the top menu and run the following query:<\/p>\n\n\n\n
UPDATE admin_user SET password = CONCAT(SHA2('xCryptKeyxYourN3wPassw0rd', 256), ':xCryptKeyx:1') WHERE username = 'YourAdminUser';<\/code><\/pre>\n\n\n\n <\/figure>\n\n\n\nImportant: Please update xCryptKeyx with your cryptographic key, and YourN3wPassw0rd with your new password. Additionally, replace YourAdminUser with the username for which you are resetting the password.<\/p>\n\n\n\n
Save the changes by clicking the “Go” or “Save” button at the bottom of the page.<\/p>\n\n\n\n <\/figure>\n\n\n\nPlease take caution whenever you directly modify the database. We also recommend taking a backup before making any changes. Additionally, it’s crucial to comply with security best practices and ensure the confidentiality of passwords.<\/p>\n\n\n\n