Bobcares

Reset admin password Magento – Different ways to do it

by | Oct 27, 2019

Magento helps to create PHP based eCommerce websites.

However, users may forget their Magento admin password or they need to change access details for security reasons.

That’s where the reset admin password Magento option is convenient.

At Bobcares, we often get requests from our Magento website owners to reset the login details as part of Server Management Services.

In this write-up, we’ll see how our Support Engineers quickly reset the Magento admin password.

 

Importance of Reset admin password Magento

Magento is a highly flexible platform for eCommerce websites.

Users can access the Magento admin area using the link: http://www.mydomain.com/admin.

Using this admin panel, users can easily manage the website and make modifications to the online store.

So losing the Magento admin panel password is very frustrating to Magento owners.

Therefore, retrieving the admin password is important.

 

How we Reset the admin password in Magento?

Users often frustrated when they forget their password or when they need to change their password because of security reasons.

But this is not a difficult task. Our Support Engineers can easily reset the password or recover the admin password for our customers.

Now let’s see the different methods used to reset the password by our Support Engineers.

5 different ways to reset the admin password.

  1. Use the ‘Reset password’ functionality.
  2. Reset password using the Magento admin panel.
  3. Using PHPMyAdmin
  4. Insert a new password using the MySQL client
  5. Change the password using n98-magerun

 

1. Use the ‘Reset password’ functionality or Email.

The easiest and quickest way to reset the Magento admin password is to request a new one through e-mail.

1. First, we browse the Magento admin panel.

2. Then we click >> Forgot your password option.

 

3. In the Email Address text box, we type the e-mail address associated with the account.

4. Then we click>> Retrieve Password option. Magento sends a message to the e-mail address associated with the administrator account.

5. We click the Reset Password link or browse the link from the browser.

6.  Now we insert the password twice and click the Reset Password button. Finally, we test the login.

 

2. Reset password using the Magento admin backend

We can reset the Magento admin password from the Magento admin panel. It can be done only if the current password is known.

1. We login to Magento >> System >> My Account.

2. To reset the password first we enter the Current Admin password. Now we enter the new password twice.

3. Finally, click on Save Account to apply the changes.

Reset another user’s password

We can reset the password of users from login as Admin.

1. First we select System > Permissions > Users.

2. Now, we select the user to perform a password reset.

3. Next, we enter the admin password in the Current Admin Password field.

4. Now we enter the new password and save the changes.

 

3. Using PHPMyAdmin

In this case, we reset the admin password through the phpMyAdmin option.

Case1:  From Admin User

1.First we login to cPanel.

2. Then we search for the phpMyAdmin option from cPanel.

3. Then we find and open the “admin_user” table.

4. After we click on the edit option.

5. We choose “MD5” in the drop-down menu.

6. Then we enter the new password and click the “Go” button.

The password has been successfully changed.

 

Case 2: Using SQL query option

1. We log into the phpMyAdmin from cPanel.

2. Then we select the database from the left side panel.

3. In the top bar, select the SQL tab.

Magento 1:

UPDATE admin_user SET password = CONCAT(MD5('$SALT$PASSWORD'), ':$SALT') WHERE username = '$USERNAME';

Replace $PASSWORD and $USERNAME with the details and $SALT with a random string of characters. If any table prefix is mentioned we make the changes in the query accordingly.

Magento 2:

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

If Magento 2  uses table prefixes we make changes in the query accordingly.

4. Then click Go to execute the query.

Using this method we reset the admin password for our customers.

 

4. Insert a new password using the MySQL client

We change the password using the MySQL client. Our Support Engineers run the queries based on the version.

Magento 1:

mysql ${DATABASE} -e "UPDATE ${TABLE_PREFIX}admin_user SET password =CONCAT(MD5('$SALT$PASSWORD'), ':$SALT') WHERE username = '$USERNAME'"

Magento 2:

mysql ${DATABASE} -e "UPDATE ${TABLE_PREFIX}admin_user SET password = CONCAT(SHA2('$SALT$PASSWORD', 256), ':$SALT:1') WHERE username = '$USERNAME'"

We make changes in the query accordingly and execute the command.

 

5. Change the password using n98-magerun

Magerun is a tool for Magento development. It is a command-line utility that provides a plugin to create, edit and delete users.

Using this plugin we can easily change the password for an existing user.

Magento 1:

cd ~/public
n98-magerun admin:user:change-password <username>

 

Magento 2:

cd ~/magento2
n98-magerun2 admin:user:change-password <username>

This will show a password prompt and then we enter the password. Finally, we test the working from the web interface.

Need more assistance to reset the admin password in Magento? We’ll fix it for you.]

 

Conclusion

In short, a quick way to recover access to the Magento admin panel interface is to reset the Magento admin password. Today, we saw how our Support Engineers reset the Magento admin login.

 

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

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

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF