How can I reset my password in drupal7
If you have drush installed, you can reset your password from the command line using

drush upwd --password="givememypasswordback" admin


For more information you could see the link.