
We get these questions a lot from the users, how to reset the WordPress admin password. This happens, due to a high number of websites using the Signup system, a user forgetting the password of his or her account is very common nowadays. Identically, there is the chance of forgetting the WordPress admin password also. Today we will talk about how we can simply reset the WordPress admin password.
WordPress is one of the most leading CMS in the world around 30% of the World population uses WordPress to create a website. Moreover, choosing the best WordPress Hosting services will help a business to have a better online presence.
Below Are The Steps To Follow To Reset Your Password:
Lost Your Password
- First, in the Administration Screen, menu, go to users -> All users.
- Now in here click on your username in the list to edit it.
- In the edit user screen, scroll down to the new password section and click the generate password button.
- If you want to change the automatically-generated password, you can overwrite it by typing a new password in the box provided. The strength box will show you how strong your password is.
- Next, click the update user button.
- A new password will immediately active.
You Can Change Through the automated emailer
Like if you know your email or username in your profile, you can use the “lost password there is a feature in WordPress.
- Go to your WordPress Login page (there something like http://Mywolf.com/wordpress/wp-login.php)
- Click on the “lost your password?” link
- Thou will be carried to a page to enter some page details. Enter your username or the email address on the register for that account.
- Wait peacefully as your new password is emailed to you.
- Once you get your new password, log in to your profile page and change this password, which you can remember easily.
You Can Through MySQL Command Line
On Linux
- Create a file called wp.txt, containing nothing but the new password.
tr -d ‘rn’ < wp.txt | md5sum | tr -d ‘ -‘
- In here you need to find a database named rm wp.txt
- MySQL -u root -p” (login to MySQL)
- enter 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 password from (name of the table you found) (this gives you an idea of what’s going on inside)
- Update (name of the table you found) set user password=(MD5 string you made) Where Id= (id# of account you are resetting the password for) and changes the password.
- Select Id, user login, user password, from the name of the table you found, and confirm that it was changed.
- Type Control-D to exit MySQL client.
You Can Change Through FTP
This another way to reset your password via FTP if you’re using the admin user.
- Log in to your website via FTP and download your active theme’s functions.php file.
- Edit the file and add this code to it, right at the beginning, after the first </php:
Enter your new password for the main admin user. The 1 is the user Id number in the wp user table.
- Upload the modified file back to your site.
- Once you log in, make sure to go back and remove that code. It will reset your password on every page load until you do so.
WP CLI is a command Lin tool for managing your WordPress Installation.
- Walk into the WordPress directory and type wp user list to see all users. Find the ID of the user you’d like to update.
- Next, update the user wp user update 1 user password= #Jacksparrow5 as password replacing 1 with the id of the user you want to update.
Using The Emergency Password Reset Script
If the above-listed things don’t work on your favor, then try the Emergency Password reset script. It’s a PHP script.
A Word Of Caution
- To Emergency, password reset script requires that you must be knowing the administrator’s username.
- This updates the administrator’s password and sends an email to the administrator’s email address.
- Even if you don’t receive the email, the password will still be changed.
- you need to be logged in to use it.
- Place the script in the root of your WordPress Installation. Do not upload It to your WordPress plugins directory.
- For security reasons, always remember to delete the script when you are done.
