Magento 2 Password reset

Magento 2 is popular open-source eCommerce software. If you lost admin password for your Magento 2 website, you can follow the instructions below to reset your password.

Find the crypt key from file

app/etc/evn.php

Once you have the key, you can run following SQL command using MySQL command line or phpMyAdmin.

Advertisement

UPDATE admin_user SET password = CONCAT(SHA2('CRYPTO_KEYnewPassword', 256), ':CRYPTO_KEY:1') WHERE username = 'admin';

In the SQL above, replace

CRYPTO_KEY = cyrpt key from your app/etc/evn.php file.
newPassword = replace with new password you need.

Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement