Reset WordPress admin password via WP-CLI
The following tutorial covers resetting the WordPress admin password via WP-CLI.
We will do the whole thing in a few seconds.
We log into the console
and go to the directory where our wordpress is located
1 | cd /var/www/wordpress/ |
The next step is to display users who can edit wordpress
We will do this by issuing an order:
1 | wp user list |
the last step is to change the password by issuing the command:
1 | wp user update 1 --user_pass=nowehasło |
wp user update 1 we replace our user ID
–user_pass=A new password replaced with a new password.
Related entries:
Monitoring the server with Munin in Debian 10
Raider or a quick way to raid the Linux Mint and Ubuntu
Scanning the server for viruses using ClamAV in Ubuntu
Installation panel Webmin system Centos 8
ack -l DB_NAME
wp-config.php
wp-admin/setup-config.php
wp-config-sample.php
wp-content/plugins/litespeed-cache/src/db-optm.cls.php
wp-content/plugins/newsletter/system/status.php
wp-includes/load.php
wp-includes/ms-load.php





