Reset the password in drupal 7

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/’;
require_once ‘includes/’;
echo user_hash_password(‘your-new-password’); die();

now copy this password and update in your database.

Have a fun