after installing magento in my local machine I forgot admin password what I have given. I am not able to login to my admin area how can I reset the password
I have read
This solution work for all versions of Magento.
Add temporally this at end of index.php
$user = Mage::getModel('admin/user')->loadByUsername('your_username');
$user->setPassword('new_password');
$user->save();
And your new_password was saved. Now remove 3 lines at the end of index.php
.
Have a nice day.