How to Reset WordPress Administrator Password

图片[1]-如何重置 WordPress 管理员密码-光子波动网 | 专业WordPress修复服务,全球范围,快速响应

WordPress is the world's most popular content management system, with over 43% websites built using it worldwide. As powerful as WordPress is, users occasionally forget their login credentials for managing their websites. In this article, we'll cover a few quick ways to recover your WordPress administrator password.

Use the "Forgot Password" option

The easiest way to reset your password is through the "Forgot your password?" option on the WordPress login page. option on the WordPress login page. The procedure is as follows:

图片[2]-如何重置 WordPress 管理员密码-光子波动网 | 专业WordPress修复服务,全球范围,快速响应
  1. Go to the WordPress login page, the URL is usually https://www.example.com/wp-adminThe name "example.com" is your domain name.
  2. Click below the Login Name and Password fields on the "Forgot your password?"Link.
  3. Enter the username or e-mail address associated with your administrator account.
  4. Click "Get new password"Button.
  5. Check your email inbox and click on the link to reset your password.
  6. Enter a new strong password and click "Save new password".

Using phpMyAdmin

If it is not possible to pass the "forgotten password?" option to reset the password, or if you cannot access the administrator's email address, you can reset the password using phpMyAdmin. Below are the exact steps:

  1. Log in to phpMyAdmin.
  2. Select your WordPress database.
  3. find wp_users table and click on "compiler"Button.
图片[3]-如何重置 WordPress 管理员密码-光子波动网 | 专业WordPress修复服务,全球范围,快速响应
  1. exist user_login column to find your username.
  2. exist user_pass column, select MD5 as the function.
  3. Enter your new password in the Value field.
  4. Click "fulfillment" button to confirm the operation.
图片[4]-如何重置 WordPress 管理员密码-光子波动网 | 专业WordPress修复服务,全球范围,快速响应

Edit the functions.php file

It is also possible to edit the theme by editing the functions.php file to reset the password:

  1. Log in to the server using an FTP client (such as WinSCP).
  2. Navigate to wp-content/themes/your-theme Catalog.
  3. locate functions.php Documentation.
  4. Add the code at the beginning of the file:wp_set_password('new_password', 1);which new_password It's your new password.
图片[5]-如何重置 WordPress 管理员密码-光子波动网 | 专业WordPress修复服务,全球范围,快速响应
  1. Save changes to the file.
  2. Delete changes to the file after a successful login.

Using WP-CLI

WP-CLI is a command line tool that allows you to manage your WordPress installation from the command line:

  1. Establish an SSH connection with the server.
  2. Navigate to the WordPress installation directory.
  3. importation $ wp user list Find target users.
  4. utilization $ wp user update user_id --user_pass=new_password command to update the password.
[admin@admin public_html]$ wp user update admin -user_pass=yournewpassword
Success: Updated user 1.
[admin@admin public_html]$

Using the MySQL Command Line

图片[6]-如何重置 WordPress 管理员密码-光子波动网 | 专业WordPress修复服务,全球范围,快速响应

Advanced users can reset the password from the MySQL command line:

  1. Get the MD5 hash of the password.
  2. Log in to the server using SSH and log in to MySQL.
  3. Select your WordPress database.
  4. Find the table containing the list of users (usually wp_users).
  5. utilization UPDATE wp_users SET user_pass='MD5_hash' WHERE user_login='your_username'; command to update the password.

Using the Emergency Password Reset Script

When all else fails, an emergency password reset script can be used:

  1. Copy the script from the Emergency Password Script page and save it as emergency.php file, upload it to the WordPress installation root directory.
  2. Open in your browser http://www.example.com/emergency.phpThe
  3. Enter the administrator name and new password.
  4. Save changes and delete emergency.php Documentation.

reach a verdict

Resetting your WordPress administrator password isn't difficult, as long as you use the right method. Either through the "forgotten password?"Options,phpMyAdminEditorial functions.php Documentation,WP-CLI,MySQL command line, or an emergency password reset script to effectively restore access to your website. Before making any changes, be sure to back up your database in case something goes wrong during the operation.

图片[7]-如何重置 WordPress 管理员密码-光子波动网 | 专业WordPress修复服务,全球范围,快速响应

Contact Us
Can't read the article? Contact us for free answers! Free help for personal, small business sites!
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
Author: xiesong
THE END
If you like it, support it.
kudos0 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments