Question

Reset wordpress dashboard password from command line

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?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Greetings,

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, Alex

alexdo
Site Moderator
Site Moderator badge
January 17, 2021

Hello,

You can easily recover your WordPress password by accessing the admin area login page and click the “Lost your password?” link. You can then enter either your Username or Email Address to receive the new password.

The other option is the reset the password from the WordPress database directly. You can check the following mini tutorial on how to do this here:

https://www.digitalocean.com/community/questions/reseting-wordpress-admin-password-via-the-command-line-terminal

Hope that this helps Regards, Alex

Hi in one click install, we do not get phpmyadmin installed, do we? i need to reset my password and have one-click install please assist

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel