If you forgot the password of your drupal admin then dont worry,
just follow some steps given here:
add following code in root index.php file on the top
define(‘DRUPAL_ROOT’, getcwd());
require_once DRUPAL_ROOT . ‘/includes/bootstrap.inc’;
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
require_once ‘includes/password.inc’;
echo user_hash_password(‘your-new-password’); die();
now copy this password and update in your database.
Have a fun
Leave a comment