Reset wordpress dashboard password from command line

July 28, 2018 988 views
One-Click Install Apps WordPress Ubuntu 16.04

I lost the password for the wordpress dashboard. I can login as root to the droplet via SSH. I am using the wordpress 1-click install (Ubuntu 16.04) on my droplet. I have no mail server setup. How do I reset the dashboard user and password via command line from the root account?

2 Answers
X40C July 28, 2018
Accepted Answer


You could use phpmyadmin or something like that and change the admin e-mail and click reset password if you've set a dummy e-mail. I know this isn't really the answer to your question but since i don't know that one i've come up with the next best thing.

Kind Regards,

Thanks, Alex! Much appreciated. That worked. Actually, a proper google search for "wordpress reset dashboard users from command line" also yielded the exact answer to my question.

Have another answer? Share your knowledge.