Sunday, April 20, 2025

Reset WordPress Admin Password via MySQL Command Line


mysql -umyUserName -paVeryStrongPassword

show databases;
 
use myWordpressDB;

SELECT ID, user_login, user_pass FROM wp_users;

UPDATE wp_users SET user_pass=MD5('YourNewStrongPassword') WHERE ID = 1;

SELECT ID, user_login, user_pass FROM wp_users;

No comments:

Post a Comment

Resetting the DirectAdmin Password via SSH:

  Resetting the Password via SSH: Access the server as root:   Use an SSH program like PuTTY to connect to your server as the root user.   R...