Bluehost Website Hosting

Forgot Your Drupal Admin Password?

Forgot Your Drupal Admin Password?

Losing or forgetting your Drupal admin password is one of the worst things that can happen. It can be so frustrating when you have to update your Drupal site then you suddenly find out that you can’t login, thereby locking you entirely out of your own site. 

The first thing that you must do is to go to user/password and request for a new password. However, this approach won’t work if:

  • You can’t access the Forgot Password page
  • You’re using an inactive email account for user1

If any of the above conditions apply to you, then you can try the two methods that will be discussed in this short guide. The first one resets the password for user1, while the second one recovers it. For both, you’ll need mySQL database access, but only the first entails the execution of a mySQL function. 

Reset Your Password 

To change the password for, follow the steps below:

  1. Go to cPanel >> Databases box >> phpMyAdmin.
  2. Choose the Drupal database folder located on the left drop-down menu.
  3. Select the SQL tab.
  4. Type the following SQL query in the text field and replace newpword with your new password:
UPDATE users SET pass = md5(‘newpword’) WHERE uid = 1;

Note that you may have to use “SET password” instead of “SET pass” for earlier installations of Drupal.

Click on GO to execute the SQL query.

Retrieve Your Password 

You may use this method if the second condition mentioned above applies to you. If you cannot retrieve your password because the email that you used for your user1 account is no longer in use, you simply have to update and enter a new working email address in the email field found in the “users” table. Once you’ve done this, navigate to the request password page so that you can have your existing password emailed to you.

Leave a Reply

 

 

 

Top 5 Drupal Hosting Companies

Popular Latest Comments Subscribe
  • jayendra: Thanks to share this. I will check these modules into my site.
  • Borhan: Hi there, I am a beginner php and joomla user. I have installed jumi component in joomla 2.5. I want to...
  • Alan Dorthmount: As good as vBadvanced is, theres vBCMS which comes with vBulletin Suite and for those that want...
  • Ahmed: i want to add like button for every page on my website not only for the main URL the code you mentioned needs...
  • ondrej: very nice! godaddy is really slow, I will go for hostgator…

homenewsarticlestutorialsweb hosting reviewsaboutprivacycontactdisclosurefollow us on facebookfollow us on twitter