It is technically impossible to find out the current administrator password, since it is not stored on the site in clear text - only its hash is stored. It is only possible to replace the password with a new one.
There are several ways to change your WordPress admin password:
To change your WordPress admin password, do the following:
In the site config file
takealook the name of the database to which it is connected.
Openup database in phpMyAdmin.
Execute the following SQL query, specifying instead of
new_password
New password:
UPDATE wp_users SET user_pass = MD5('new_password') WHERE id = 1;
If the names of the tables in the database do not start with the standard wp_
, and with a different prefix, make the appropriate change to the SQL query.
-
This method implies changing the user's password, having administrator access data to the site's admin panel.
To change your WordPress user password, do the following:
-
Go to the section "
Users → All users»:

Hover the cursor over the desired user and click “
Edit»:

At the very bottom of the page in the section "
Account management»Click«
Create a password»:

A new password will be displayed in the field that appears, which you can leave or change yourself to a more suitable one, after which you need to click "
Update profile"To accept the changes:

To reset your WordPress user password, do the following:
Go to
login page into the admin panel and click "
Forgot your password?»:

Specify the mailbox of the user to which the password was lost, and click "
Get a new password»:

An email will be sent to the mailbox with a password reset confirmation link, which must be followed.
On the page that opens, copy and / or edit the generated password and click “
Set password»:

-
To change your WordPress user password, do the following:
Using
filemanager or any
FTPclient, enter the site directory and go to the directory
wp-content
in which create a directory
mu-plugins
.
**Note: directory must have exactly this name, not to be confused with directory
plugins
.
In the created directory
mu-plugins
create a file
recovery.php
and put 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 admin
specify the username that is used to login, and instead of password
enter a new password.
Go to the authorization page and log in with a new password. Please note that the script will be automatically deleted after triggering, so no additional action is required.