![]() ![]() It will reset your password on every page load until you do so. ![]() Once you are able to login, make sure to go back and remove that code.Upload the modified file back to your site.Since we wanted the user ID of the main admin user, we just keep the number as 1, which is typically the user ID of the main admin user. The number 1 above refers to the user ID number in the wp_users database table. In the above code, replace the text my_new_password with your own new password for the main admin user. Edit the file and add this code to it, right at the beginning, after the first Login to your site via FTP and download your active theme’s functions.php file.There is also an easy way to reset your password via FTP, if you’re using the admin user. Reset a WordPress password from phpMyAdmin.If it doesn’t work, check that you’ve followed these instructions exactly. Test the new password on the login screen.Click the ‘Go’ button to the bottom right.PhpMyAdmin user_pass row with MD5 function and “rabbitseatcarrots” as the password Check that your password is actually correct, and that MD5 is in the box.PhpMyAdmin select MD5 function on user_pass row Once you have done that, click the dropdown menu indicated, and select MD5 from the menu.In this example, the new password will be ‘rabbitseatcarrots.’.You can type it in normally–but remember, it is case-sensitive. Select and delete these and type in your new password.Next to the user_pass is a long list of numbers and letters.Click edit (may look like a pencil icon in some versions of phpMyAdmin).All the tables in your database will appear.Begin by logging into phpMyAdmin and clicking databases.WordPress is not responsible for loss of data. If you doubt your ability to use it, seek further advice. This article is for those who have phpMyAdmin access to their database. Note that even if the passwords are salted, meaning they look like $P$BLDJMdyBwegaCLE0GeDiGtC/mqXLzB0, you can still replace the password with an MD5 hash, and WordPress will let you log in. “UPDATE (name-of-table-you-found) SET user_pass = MD5(‘(new-password)’) WHERE ID = (id#-of-account-you-are-reseting-password-for) ” (actually changes the password).Note: if you have a recent version of MySQL (version 5.x?) you can have MySQL compute the MD5 hash for you. “SELECT ID, user_login, user_pass FROM (name-of-table-you-found) ” (confirm that it was changed).“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) ” (this gives you an idea of what’s going on inside).“show tables ” (you’re looking for a table name with “users” at the end).“use (name-of-database)” (select WordPress database).wp.txt (If you want the MD5 hash copied to the clipboard.) wp.txt (If you want the MD5 hash printed out.) Create a file called wp.txt, containing nothing but the new password.Once you get your new password, login to your profile page and change this password to something you can remember.Wait happily as your new password is emailed to you.Enter your username or the email address on file for that account. You will be taken to a page to enter some details.Click on the “Lost your password?” link.Go to your WordPress Login page (something like ).If you know your username or the email account in your profile, you can use the “lost password” feature of WordPress. Your new password becomes active immediately. The strength box will show you how good (strong) your password is. If you want to change the automatically generated password, you can overwrite it by typing a new password in the box provided. ![]() In the Edit User screen, scroll down to the New Password section and click the Generate Password button.Click on your username in the list to edit it.In the Administration Screen, menu, go to Users > All Users. ![]() To change your password in current versions: The method that you use depends on the type of access that you still have to your website. Here’s a list of different ways to reset a password. However, there are certain times (especially if your email isn’t working correctly) that you may have to take different steps to reset your password. (Normally, the easiest way to reset it is through the “Lost your password?” link on the main login page for your blog or website.) In WordPress, there is more than one way to reset your password. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |