No announcement yet.

Ways To Reset Magento Administrator Password

  • Filter
  • Time
  • Show
Clear All
new posts

  • Ways To Reset Magento Administrator Password

    Normally if you forget your password, you can use the Magento password recovery feature to reset the password by e-mail. However, if this option is unavailable (for example, if e-mail on your site is not working correctly), you can use phpMyAdmin to manually reset the password in the database.

    Method #1: E-mail

    The quickest and easiest way to reset the Magento administrator password is to request a new one through e-mail. To do this, follow these steps:
    1. Use your web browser to go to the Magento login page.
    2. Click Forgot your password?.
    3. In the Email Address text box, type the e-mail address associated with the account.
    4. Click Retrieve Password. Magento sends a message to the e-mail address associated with the administrator account.
    5. In the message, click the link to reset the administrator password.
    Method #2: phpMyAdmin

    You can also modify the Magento administrator password directly in the database using phpMyAdmin. To do this, follow the appropriate procedure for your version of Magento. Magento 2

    To reset the administrator password directly in the Magento 2 database, follow these steps:

    1. Log in to cPanel.
    2. In the Databases section of the cPanel home screen, click phpMyAdmin.

    3. In the left-hand pane of phpMyAdmin, click the Magento database. A list of tables in the database appears.

    4. On the top menu bar, click SQL.

    5. Copy and paste the following statement into the SQL query text box. Replace NewPassword with the new password, and replace both occurrences of xxxxxxxx with any random character sequence:
    UPDATE admin_user SET `password` = CONCAT(SHA2('xxxxxxxxNewPassword', 256), ':xxxxxxxx:1') WHERE `username` = 'admin';

    6. Click Go. phpMyAdmin updates the database, and you can log in to Magento as the administrator using the new password.