Updating your wordpress PW without being able to password reset via email (GCP hosted WordPress instance)

Steps:

  1. Get to your VM instance page (https://console.cloud.google.com/compute/instances)
  2. Click on the SSH dropdown
  3. Enter the following commands

~$ cd /var/www/html
/var/www/html$ wp user update [username] –user_pass=[new_password]

Here’s an example if your user name was “admin” and you wanted the password to be “new_pass” you would enter the following after navigating to the right directory.

wp user update admin –user_pass=new_pass

Here’s the SSH button if you don’t know where to find it

Leave a Reply

Your email address will not be published. Required fields are marked *