Resetting the Admin Password in Drupal
If you have been locked out of your Drupal admin account, you can reset the password through phpMyAdmin or Drush.
Method 1: phpMyAdmin
- Log into cPanel > phpMyAdmin
- Select your Drupal database from the left sidebar
- Click on the users_field_data table (Drupal 8/9/10) or users table (Drupal 7)
- Find the admin account (usually uid = 1)
- Click Edit
- In the pass field, you cannot simply type a new password because Drupal uses hashed passwords
Method 2: Drush (Recommended)
If you have SSH access and Drush installed, the easiest method is:
cd /home/username/public_html
drush user:password admin "newpassword"
Method 3: Password Reset Link
Via Drush:
drush user:login
This generates a one-time login link you can use in your browser to access the admin and set a new password.
If you do not have SSH access, contact support and we can assist with the password reset.
