How to Reset Magento 2 Admin Password?

Reset Magento 2 Admin Password

Are you looking to reset the Magento 2 admin password?

It is a good security practice to change your password regularly. Having the same password for a month can open up security concerns, as you may not know how many devices you have logged in to your store.

If someone already has access to your store backend, you can log out from all the devices by changing the password.

Be it for security purposes, or you just forgot your password, you can reset your Magento password in quick steps.

In this article, I am going to show you 5 easy methods to change the Magento 2 admin password.

Methods to Reset Magento 2 Admin Password:

  1. Reset Magento 2 admin password via Email
  2. Reset Magento 2 admin password via command line
  3. Reset Magento 2 admin password from Account Settings
  4. Reset Magento 2 admin password via phpMyAdmin
  5. Reset Magento 2 admin password via phpMyAdmin

#1 Reset Magento 2 admin password via Email

You can reset the Magento 2 admin password via forget password method.

  1. Enter the Magento login URL to open the admin panel
  2. Click on ‘Forget Password’
Change Magento password from Forgot Password
  1. Enter your registered email address

You will get a link to reset your password. This method is helpful when you don’t remember your password.

Although, you can use this method to reset the Magento 2 password.

#2 Reset Magento 2 admin password via command line

You cannot change the admin password with Magento CLI but create a new admin user. Then you can log in to your Magento admin and then change and reset the original user’s password.

Open your Magento root directory. And execute the following command to create a new user.

php bin/magento admin:user:create --admin-user new_user_name --admin-password new_user_password --admin-email [email protected] --admin-firstname firstname --admin-lastname lastname

new_user_name: add the username of the new admin account that you’ll be creating

new_user_password: add the password of the new admin account that you’ll be creating

[email protected]: add the emails address to register with this username

firstname: your first name

lastname: your last name

#3 Reset Magento 2 admin password from Account Settings

If you already know your Magento admin password, you can reset it from the admin panel. 

Simply log in to your store and Open System > Permissions > All Users.

Change Account Setting All Users

A list of the available users, including the store admin, is present here. You can click on any user to reset its password.

Magento Account Setting Editing User

On the next page, you will see the option to change the password.

Magento Account Setting Change Password

Enter your password and click on Save User to reset the password.

#4 Reset Magento 2 admin password via phpMyAdmin

One method is to change the admin pass with phpMyAdmin. If you have access to phpMyAdmin, you can insert a SQL query to change the information in the admin_user table.

Simply log in to phpMyAdmin and choose the database that contains the Magento store’s data. Then click on SQL at the Top Bar.

phpMyAdmin Reset Magento 2 Admin Password

And paste the following query:

UPDATE admin_user SET password = SHA2('$PASSWORD', 256) WHERE username='$USERNAME';

Add the new admin password at the place of $PASSWORD and replace the $USERNAME with the username you want to change the password for.

Click on Go to execute the query. Log in with your new password and old username.

#5 Reset Magento 2 admin password via Breeze

If your Magento store is on Breeze, you can easily reset Magento 2 password from the Breeze dashboard.

  1. Log in to the Breeze platform
  2. Go to the Company your store is in
  3. Open the Store
  4. Click on ‘Access’ from options on the left side

You will find your store login URL, username and password here.

Breeze Magento Passwprd reset

Click on the circular arrows below the Password. The Breeze will reset your password and assign a strong password to your username.

If you want to view the password, click on the eye. You can directly log in to your store from here by copy-pasting the username and password.

Wrap Up

If you are not a Magento developer, you should avoid using the CLI and phpMyAdmin. They can break your store if you meddle with the wrong settings.

You can use the forgot password method or change the password from the backend.

The easiest method is to use the Breeze dashboard, as it changes the password and creates a strong password.

Breeze helps you manage your entire Magento hosting infrastructure, save your team’s time while loading your store in under 3 seconds.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top

Talk to a sales representative

USA / Worldwide

+1.714.2425683

India

+91.9852704704

We can help you. Right now.

Fast growing merchants depend Breeze for high-performance hosting. Experience counts. Let's get started.