skip to main |
skip to sidebar
Through MySQL Command Line
- Get an MD5 hash of your password.
- Visit MD5 Hasher (http://bfl.rctek.com/tools/?tool=hasher), or...
- Create a key with Python. or...
- On Unix: echo -n | md5sum
- "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)
- "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)
没有评论:
发表评论