WordPress

[WordPress on VPS] How To Change Reset Any WordPress User Password

Things do happen. What happens when you lost your password or even worse, lost the password of the admin account because it’s been so long? Yes, you can use the “Forget Password” feature to reset your password. But what if even that doesn’t work?

Here is a quick way that we can use to update the wp_users table value to reset any account’s password.

Log into MySQL first.

$> mysql -u room -p

Type the password of the root account and press Enter to get in.

Then switch to the database that hosts your WordPress website.

mysql> USE wp_db_name

Now, run the following update command to update the account’s password.

mysql> UPDATE `wp_users` SET `user_pass`= MD5('yourpassword') WHERE `user_login`='yourusername';

That’s it. If everything goes as planned, you will have a new password for your lost account right after.

edge

Share
Published by
edge

Recent Posts

Disable Copilot on Windows 11 via Group Policy GPO

If using Copilot right from the Taskbar isn't your thing, you should disable it. Even…

8 months ago

Setting Default Fonts in Word, Excel, Outlook, and PowerPoint via Group Policy

In an environment where standardizing things does matter, setting default fonts in Microsoft Office apps…

8 months ago

Wake-On-LAN (WOL) with Windows and PowerShell

Wake-On-LAN is a networking standard that lets you wake up a computer from either a…

8 months ago

How To Remove Restrictions Set in A Password-Protected PDF File

First of all, this is not to bypass a PDF file that requires a password…

9 months ago

How To Move My Outlook Navigation Bar Back From Left Back To the Bottom

Microsoft has been lurking about the idea of placing the Outlook navigation bar to the…

2 years ago

Headset with Microphone Echoing My Own Voice on Windows, What To Do?

One colleague came up to me the other day asking me to take look at…

2 years ago