Last active
March 18, 2021 11:53
-
-
Save 6ui11em/6016f88f29030aeb6e99a8e9e080ca70 to your computer and use it in GitHub Desktop.
Magento2 reset user password #magento2 #mysql
This file contains hidden or 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
UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxYourNewPassword', 256), ':xxxxxxx:1') WHERE username = 'admin'; | |
-- REST Customer & Admin password | |
SET @pass = '123123q'; -- pone el pass q mas te guste | |
SET @salt = MD5(UNIX_TIMESTAMP()); | |
UPDATE admin_user SET password = CONCAT(SHA2(CONCAT(@salt, @pass), 256), ':', @salt, ':1'); | |
UPDATE customer_entity SET password_hash= CONCAT(SHA2(CONCAT(@salt, @pass), 256), ':', @salt, ':1'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment