WordPress: Reset the admin password
I lost the admin account password for a WordPress site. There are several ways to reset a WordPress password.
These are the steps I used to reset the "admin" account password in WordPress 2.7.1.
Reset the password
- Open a Linux shell.
- Generate an MD5 password hash:
Shell1 line 1echo -n password | md5sum - Go to phpMyAdmin and open your WordPress database.
- Run the following SQL, replacing the database name with your own:
SQL1 line 1UPDATE 'name-your-database'.'wp_users' SET 'user_pass' =' 5f4dcc3b5aa765d61d8327deb882cf99' WHERE 'wp_users'.'ID' =1 LIMIT 1 ; - You can also run mysql, select the database with "use name-your-database;" and run the UPDATE statement above.
Reference
2 comments
Comments from the original WordPress site, kept read-only.
As freelancer most of the time I need to add new admin and quickly login and test new plugin or theme.
I use addnewadmin script. http://hecode.com/addnewadmin
Simply copy the addnewadmin.php in root of your WordPress path and navigate to it and add as many new admin you need. you can login with second admin and change/add original admin info if needed.
Nice article.
I am also writing some articles on http://www.wordpressstop.com once visit my site and get lot of stuff regarding to Wordpress.