Table of Contents
To recover drupal admin password .We can use some below method
1) Use drupal built in function i.e user_hash_password('newpassword');
put below code in your drupal theme index.php's bottom of the page to see new hashed password .Here we consider new password is 'admin' .You can put whatever you want ex:
Visit us for Advanced level Drupal Training including Module and Theme Development .We have located in West Delhi, India. We also provide online drupal training ,Our Drupal course is advanced and focused on real time project based
Now refresh the drupal home page on browser ( https://localhost/drupal_folder )
you should see a new password hashed generated on bottom of the page.
Copy this password then remove the code put on index.php .
Now open https://localhost/phpmyadmin .
Access your database's 'users' table .
There on password field replace it with your copied password where uid is 1 .
That's it Now check by login on drupal admin from https://localhost/drupal_folder/user