Created
December 4, 2017 09:42
-
-
Save qaiserali/15b2e61520dfc040d485413e3a9c1720 to your computer and use it in GitHub Desktop.
Reset admin password in magento via MySQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Magento 1.9 | |
UPDATE admin_user SET `password` = md5('{New_Password}'), is_active = 1 WHERE `username` = '{Admin_User_Name}'; | |
Magento 2 | |
UPDATE admin_user SET `password` = CONCAT(SHA2('xxxxxxxx{New_Password}', 256), ':xxxxxxxx:1') WHERE `username` = '{Admin_User_Name}'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment