Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reset wordpress password on AWS lightsail

I’ve used wp all in one plugin to migrate my site to aws lightsail. However, it also migrated the old credentials which was owned by the previous webhosting company. I’m not able to obtain those credentials. In this case, how can I reset my user and password to my new Wordpress? My lightsail ssh has a bitanami interface on the console, I suppose that is how I should go about it but I'm exactly sure about the steps.

like image 379
Fenzox Avatar asked Sep 07 '25 05:09

Fenzox


1 Answers

You should use wp cli for resetting password.

  • First install wp cli
  • Run wp user list --role=administrator to get administrator user id
  • Run wp user update 1 --user_pass=newpass to reset password.
like image 90
An Nguyen Avatar answered Sep 09 '25 23:09

An Nguyen