Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.14.1.7. Change administrator password in WordPress
Attention!
The current administrator password cannot be retrieved because it is not stored on the site in plain text — only its hash is stored. The password can only be changed to a new one.- Click "CMS install" in site menu:

- Click "Reset password":

- Select the user, specify the new password, and click "Change password":

- In the site configuration file, check the name of the database to which it is connected.
- Open database in phpMyAdmin.
- Execute the following SQL query, specifying the new password in place of
new_password:UPDATE wp_users SET user_pass = MD5('new_password') WHERE id = 1;If table names in database do not start with standard
wp_but with another prefix, make corresponding change in SQL query. - Check the login to admin panel.
Attention!
This method implies changing the user password using administrator access credentials for site admin panel.- Sign in to admin panel of site.
- Go to "Users → All users":

- Hover over the required user and click "Edit":

- At the bottom of the page in the "Account management" section, click "Create password":

- In the displayed field, a new password appears, which you can keep or change to a more suitable one, after which you must click "Update profile" to apply changes:

- Go to login page of admin panel and click "Forgot your password?":

- Specify the user mailbox for which the password was lost, and click "Get new password":

- A message with a password reset confirmation link will be sent to your email address. Follow link to confirm the password reset.
- On the page that opens, copy and/or edit the generated password and click "Set password":

- Sign in to admin panel with new password.
- Using file manager or any FTP client, sign in to site directory and go to
wp-contentdirectory, where you must createmu-pluginsdirectory. Attention! Directory must have exactly this name; do not confuse it withpluginsdirectory. - In created
mu-pluginsdirectory, createrecovery.phpfile and place the following code in it:<?php add_action( 'init', 'my_password_recovery' ); function my_password_recovery() { $user = get_user_by( 'login', 'admin' ); wp_set_password( 'password', $user->ID ); } unlink(__FILE__);Instead of
adminspecify the login used for sign-in, and instead ofpasswordspecify the new password. - Go to the login page and sign in with new password. Note that script is automatically deleted after it runs, so no additional actions are required.
Video
(3)
Comments