How to reset admin password in Magento 2

magento-2-tutorial
how-to
reset
password
admin

User Name and Password are the required fields if you want to login Magento admin. And it is the huge trouble if you forget one of them. Therefore, resetting admin password is very essential to every store. With Magento 2, “Forgot your password” link is available to click, then a temporary password can be sent to the email address that is associated with the account immediately. Let do the following steps to reset your admin password in Magento 2.

To reset Magento 2 admin password:

  • Go to phpmyadmin
  • Open table admin_user
  • Run the following sql query

Reset Magento 2 admin password in phpmyadmin

Go to phpmyadmin and copy the following sql query:

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

The xxxxxxx character sequence is a cryptographic salt.

it is saved in app\etc\env.php file

<?php
return array (
  ...
  'crypt' => 
  array (
    'key' => '525701df74e6cba74d5e9a1bb3d935ad', //cryptographic salt
  ),
  ...

To reset your Magento 2 password from Admin panel:

  • If you forget your password, click the Forgot Your Password? link.

How to reset admin password Magento 2 Forgot Password

  • Enter the Email Address that is associated with the Admin account.
  • Click  Retrieve Password . If there is an account associated with the email address, an email will be sent to reset your password.

Reset Magento 1 via Email

  • Go go Magento admin panel, default is your-domain.com/admin
  • Click Forgot your password?
  • Type your email address which assosiated with admin account in Email Address input box
  • Click Retrieve Password to reset password.
  • Open your email box and check the reset password link. The link is valid in 24 hours.

Ref: Magento 2 user guide

It comes to the end of tutorial: How to reset admin password in Magento 2.

Please leave comments if you have any questions, feedbacks.

Comments for How to reset admin password in Magento 2

You also may like these Magento 2 Extensions

One Step Checkout

$199
18 reviews

Layered Navigation

$99
11 reviews

SEO

FREE
5 reviews

Shop By Brand

$99
no review

People also searched for:

  • reset admin password Magento 2
  • reset admin password magento 2
  • magento 2 reset admin password on localhost
  • magento 2 admin reset password link
  • magento 2 enterprise reset admin password
  • magento 2 reset admin password
  • reset admin password magento 2
  • reset admin password magento 2 phpmyadmin
  • reset admin password magento 2 database
  • reset admin password for magento 2
  • how to reset admin password magento 2
  • reset admin password in magento 2
  • how to reset admin username and password in magento 2
  • magento 2 reset admin password localhost
  • magento 2 reset admin password mysql
  • magento 2 admin password reset not working
  • how to reset admin password on magento 2
  • magento 2 reset admin password sql
  • magento 2 reset admin user passwor