This commands will be help you to reset the admin password of your site.
# Provide you a login link
# Set the password for any user
drush upwd admin –password=”new password”
One more way :
cd php scripts/password-hash.sh 'drupal'
This will generate a hash for you, copy and paste in below queries.
update users set name='admin', pass='Hash generated from above command' where uid=1;
If you are using drupal, you must have heard of drush, if not check it now, its the one of the awesomest thing in drupal.More links
1. Project page on drupal.
2. Documentation : how to install
Now i suppose you have drush installed on your system. So you can install drupal in three easy steps.
Drush dl drupal
mv drupal-7.x your_site_name && cd your_site_name
drush si --db-url=mysql://mysql_username:email@example.com/db_name --account-name=you_choose --account-pass=you_choose --account-email=your_email --locale=pt_br --site-name="Drupal Test"