How to recover your blog password

Hello , Friends

i have a website which is hosted be wordpress  , i updated my wordpress from 3.5 to newer version but from that time i was not able to access the my wp-admin menu .

i googled a little bit then i didn’t get any thing then  i tricked with my website ……

1. i downloaded everything from my hosting place to my computer through filezila

2. the i made some changes in files  “admin.functions.php” in “upgrade-functions.php”  .

changes was i added

wp_set_password('password',1);

Put in your own new password for the main admin user. The “1” is the user ID number in the wp_users table.

3. Upload the modified file back to your site.

4. After you then are able to login, make sure to go back and remove that code. It will reset your password on every page load until you do.

 

Cheers !!!