Wordpress admin password reset
One of my friends called me a few days ago so nervous – he lost his password for one of his blogs on WordPress. Hard drive in his laptop had malfunction and buddy lost all of his data. Of course a backup is a good thing, but – as you probably guessed – my friend forgot do a backup… Yeah – i like this: “i forgot…”.
OK, but how to reset admin password on WordPress? No so difficult:) Let’s do a little trick…
Through the WordPress emailer
You know your WordPress username or the email account? Use the “lost password” feature:
1. Go to your WordPress Login page
2. Click on the Lost your password? link
3. You will be taken to a next page. Enter your username or the email address.
4. New password is emailed to you.
Through phpMyAdmin
Login into phpMyAdmin and click databases.
A list of databases will appear. Check your WordPress database.
1. All the tables in your database will appear. If not, click Structure.
2. Look for wp_users in the Table column.
3. Click on the icon for browse.
4. Locate your Username under user_login
5. Click edit (look like a pencil icon)
6. Your user_id will be shown, click on Edit
7. Next to the user_pass is a long list of numbers and letters.
8. Select and delete these and type in your new password. Just type it in normally.
9. Click the dropdown menu at left, and select MD5 from the menu.
10. Click the ‘Go’ button to the bottom right.
11. Login to WordPress backend normally with your new password.
Through FTP
Most easy way to reset your password via FTP, but only if you’re using the admin user.
1. Login to your site via FTP and download your active theme’s functions.php file.
2. Edit the file in text editor and add this code, right at the beginning, after the first <?php
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. Now you are able to login.
5. Make sure to go back and remove that code. It will reset your password on every page load until you do.
July 8, 2015 11:22 AM
Yeah WordPress and security – ROTFL 🙂