WordPress website forgettingRemembering passwords is a common problem. The good news is that WordPress providesMultiple reset passwordsThe methods will enable you to easily restore access to your website. I will describe these methods in detail, including using the built-in password reset feature, resetting the password via the database, and manually resetting the password via FTP.
![图片[1]-WordPress重置密码:完整详细指南-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/06/2024061401332545.png)
First, use WordPress built-in password reset function
- The login page requests a password reset:
- Open your WordPress login page, which is usually
https://www.361sale.com/wp-login.php
The - Click "Forgot your password?"Link.
- On the page that appears, enter the email address or username you used to register and click "Get new password"Button.
- Check your email inbox for an email from WordPress and click on the link in the email.
- You will be redirected to a page where you can enter and confirm your new password. When finished, click the "Reset Password" button.
- Open your WordPress login page, which is usually
- Make sure the email settings are correct:
- If you don't receive an email to reset your password, check your spam folder.
- Make sure your WordPress site's email settings are correct. You can use plugins such asWP Mail SMTPto configure and test the email sending functionality.
![图片[2]-WordPress重置密码:完整详细指南-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/06/2024061401400055.jpg)
II. Password reset through the database
If you are unable to reset your password via email, you can change it directly in the database.
- Access phpMyAdmin:
- Log in to your hosting control panel (e.g. Pagoda or 1P, etc.).
- Locate and open phpMyAdmin.
- Select the database:
- In phpMyAdmin, select the database that corresponds to your WordPress site.
- Find the user table:
- Find the file in the database named
wp_users
table (prefixes may vary, depending on your WordPress installation).
- Find the file in the database named
- Edit user information:
- Find your username and click "Edit".
- exist
user_pass
In the field, select "MD5" as the function. - Enter your new password in the Value field.
- Save changes:
- When finished, click the "Execute" button to save the changes.
![图片[3]-WordPress重置密码:完整详细指南-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/06/2024061401403656.jpg)
Third, manually reset the password through FTP
If you can't access phpMyAdmin, you can also reset your password manually via FTP.
- Connect to your server:
- Connect to your server using an FTP client such as FileZilla.
- Enter the hostname, username and password to connect.
- Edit the functions.php file:
- Navigate to
/wp-content/themes/your-theme/
Catalog. - Download and open
functions.php
Documentation.
- Navigate to
- Add a reset password code:
- Add the following code to the end of the file:
wp_set_password('YourNewPassword', 1);
- commander-in-chief (military)
YourNewPassword
Replace your new password with your new password by replacing the1
Replace it with your user ID.
![图片[4]-WordPress重置密码:完整详细指南-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/06/2024061401411936.jpg)
wrap-up
There are several ways to reset your WordPress password, each of which applies to a different situation. Using the built-in password reset feature is the easiest way, but you can also manually reset your password through a database or FTP if you run into problems. Make sure to update and backup your passwords regularly to improve the security of your website. Hopefully, this article will help you reset your WordPress password without any problems and restore access to your website.
Link to this article:https://www.361sale.com/en/11409The article is copyrighted and must be reproduced with attribution.
No comments