Skip to content

Instantly share code, notes, and snippets.

@6ui11em
Last active March 18, 2021 11:53
Show Gist options
  • Save 6ui11em/6016f88f29030aeb6e99a8e9e080ca70 to your computer and use it in GitHub Desktop.
Save 6ui11em/6016f88f29030aeb6e99a8e9e080ca70 to your computer and use it in GitHub Desktop.
Magento2 reset user password #magento2 #mysql
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