Normally getting forget password in wordpress by email only. But when you install wordpress locally in your machine thent getting the password threw Email is not possible unless your local machine is domain. I’ll explain you how to recover it in easy way.
Just follow steps that i have given bellow .
steps 1: open your localhost/phpmyadmin/ in web browser
steps 2: choose database. In mine wordpress(19).
step 3: choose the wp_users Table. where all users information is stored.
step 4: select the user to change the password by selecting the check box and click the pencil icon .
step 5: select the md5 function in user_pass row and edit your new password in the value field and click go.
Now your password is changed. You can now use your new password to login.