For localhost installation of wordpress the 'lost your password' option is not usefull.
here is the way to retrieve the lost password
in the terminal type the following
type your password and findout the md5 key.
copy that key
here is the way to retrieve the lost password
in the terminal type the following
- "mysql -u root -p" (log in to MySQL)
- enter your mysql password
- "use (name-of-database)" (select WordPress database)
- "show tables;" (you're looking for a table name with "users" at the end)
- "SELECT ID, user_login, user_pass FROM (name-of-table-you-found)" (this gives you an idea of what's going on inside)
type your password and findout the md5 key.
copy that key
- "UPDATE (name-of-table-you-found) SET user_pass="(MD5-string-you-made)" WHERE ID = (id#-of-account-you-are-reseting-password-for)" (actually changes the password)
- "SELECT ID, user_login, user_pass FROM (name-of-table-you-found)" (confirm that it was changed)
- (type Control-D, to exit mysql client)
Comments
KissAnime alternatives