How to reset admin password in Drupal?

  • First you open localhost → phpmyadmin
  • Then you go to the database that drupal is working on
  • click on the SQL tab
  • in the text field type the following query :

               update users set pass=md5('NEWPASS') where uid = 1;

*where "NEWPASS" is your new administrative password.

  • Then click on the GO button.