Forgotten your Drupal account password

Last modified: January 6, 2009 - 14:45

When the Drupal account password for user 1 (the administrator) is lost and the email notification doesn't work, it is possible to set the password via a database query.

Execute the following query on the Drupal database:

UPDATE `users` SET pass = MD5('newpwd') WHERE uid=1;

Of course, change 'newpwd' to the desired password.

To execute this query it will be necessary to login to the database. This is typically done through the command line or through a GUI interface such as phpMyAdmin.

 
 

Drupal is a registered trademark of Dries Buytaert.