How to reset Drupal admin password

There are several ways on how you can reset Drupal admin password. This can be done through the following:

Reset Drupal admin password via Admin Site

This assumes that you have access to your admin site and you only want to change the password.

Step 1. Log in to your Drupal Admin site.

Step 2. Click Edit tab.

Step 3. Enter the current password and click “Request new password” link.

Step 4. Enter the new password twice.

Step 5. Scroll down and click “Save” button.

Reset Drupal admin password via email

This  assumes that you know the email address you are using for the Drupal admin site but does not know the password or forgot it.

Step 1. Access your Drupal admin site.

Step 2. Click “Request new password” tab.

Step 3. Enter your Drupal username or email address.

Step 4. Click “E-mail new password”.

Step 5. Further instructions is sent to your email address.

Step 6. Access your email account associated with your Drupal website. Click the reset password link.

Step 7. Click on “Log in” button.

Step 8. You are accessing the admin site with a one-time login. Enter the new password.

Step 9. Scroll down and click “Save” button.

Reset Drupal admin password via Drush command line

Since this requires SSH access, this is only applicable to Virtual Server and Dedicated Server Hosting packages. This command must be installed on your server.

Step 1. Connect to your SSH (Mac OSx or Windows).

Step 2. Use cd command to access your Drupal directory.

cd directory

(Replace directory with the correct directory name.)

Step 3. Type the following command:

drush upwd --password="DrupalNewPassword" admin

(Replace DrupalNewPassword with the new password for your Drupal admin. This assumes you are changing the admin password. If you have a different username change admin to the correct username.)

Step 4. Press “Enter” and exit from your SSH.

You should now be able to access your Drupal Admin site with the new login password.

Reset Drupal admin password via phpMyAdmin

This is only applicable to Drupal version 7. Since this requires SSH access, this is only applicable to Virtual Server and Dedicated Server Hosting packages.

(Note: Directory, Database names, Drupal prefix in the images below are only examples. Make sure to locate the correct folders and database for your Drupal website.)

Step 1. Connect to your SSH (Mac OSx or Windows).

Step 2. Use cd command to access your Drupal directory.

cd directory

(Replace directory with the correct directory name.)

Step 3. Type the following command:

php scripts/password-hash.sh DrupalNewPassword

(Replace DrupalNewPassword with your desired password.)

Step 4. Copy the generated hash value.

Step 5. Log in to the cPanel.

cPanel-Login | FTP password

Step 6. Click on phpMyAdmin under Databases panel.Import and export database

Step 7. Locate your Drupal database and click users (please check if you are using database prefix).

Step 8. Click “Edit”. (Tip: You may also follow the steps in Forgot Password if the email address that is shown in the database is still accessible.)

Step 9. Look for the “pass”. Change its value to the alphanumeric hash value generated by SSH.

Step 10. Scroll down and click “Go”.

If you are not confident to make any of the modifications mentioned above, you may have our Application Support Engineers help you with an ad-hoc fee per request.

If you have further questions, please do not hesitate to contact our support team.

reset Drupal admin password

(Visited 10 times, 1 visits today)

Leave A Comment?