# Forgot admin password

**URL:** <https://community.localwp.com/t/forgot-admin-password/2949>\
**Category:** Support\
**Created:** [September 20, 2017, 6:28pm UTC](https://community.localwp.com/t/forgot-admin-password/2949 "2017-09-20T18:28:13Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![archerius](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@archerius](https://community.localwp.com/u/archerius)\
**Post date:** [September 20, 2017, 6:28pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/1 "2017-09-20T18:28:13Z")

</div>

Hi I installed a local site and now I can’t remember the password. How can I add another admin or reset my password using the database?

Thank you

Sirus

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [September 21, 2017, 5:29pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/2 "2017-09-21T17:29:43Z")

</div>

Hi Sirus,

To recover your WordPress password in Local, the easiest thing is to:

1. Go to the WordPress login page
2. Click on “Forgot Password?” and fill out the form
3. Go back to the site in Local
4. Go to Utilities
5. Click on MailHog (or MailCatcher) and view the password reset e-mail in there

---

<div class="post-metadata">

**Author:** ![RMAgency](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RMAgency](https://community.localwp.com/u/RMAgency)\
**Post date:** [October 27, 2017, 9:01pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/3 "2017-10-27T21:01:22Z")

</div>

Hi Clay,

I’ve followed the steps above but step 5. is impossible to complete…

Absolutely nothing happens when I click on MailHog.

Please simple add a can’t login section to the FAQs.

Such a simple task, but so frigging frustrating when you can’t login!

URRGGGGHHHH!

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [October 27, 2017, 9:05pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/4 "2017-10-27T21:05:45Z")

</div>

@RMAgency,

Are you using Local on a Mac or PC?

Also, you can change user passwords using WP-CLI. You can use WP-CLI by right-clicking on the site in Local and then going to “Open Site SSH”

Here’s an example command to change a user’s password with WP-CLI: [https://developer.wordpress.org/cli/commands/user/update/#examples](https://developer.wordpress.org/cli/commands/user/update/#examples)

---

<div class="post-metadata">

**Author:** ![RMAgency](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RMAgency](https://community.localwp.com/u/RMAgency)\
**Post date:** [October 27, 2017, 9:12pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/5 "2017-10-27T21:12:54Z")

</div>

Hi Clay,

Thanks for your reply.

I’m using a Mac and have just downloaded the latest version of Local.

---

<div class="post-metadata">

**Author:** ![RMAgency](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RMAgency](https://community.localwp.com/u/RMAgency)\
**Post date:** [October 27, 2017, 9:15pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/6 "2017-10-27T21:15:35Z")

</div>

Local worked fine last time I used it.

I checked the link but I’m none the wiser on what I actually need to do.

It really shouldn’t be this painful to simply login!

Can you reset do anything your end to resolve this issue?

Thanks,

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [October 27, 2017, 9:19pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/7 "2017-10-27T21:19:30Z")

</div>

> [@RMAgency](#):
>
> Can you reset do anything your end to resolve this issue?

There’s nothing we can do due to the nature of how Local works.

* * *

What is your default browser set to?

Also, can you try clicking on the MailHog link and then send your `local-by-flywheel.log` file? You can find it by going to Help » Reveal Local’s Log.

---

<div class="post-metadata">

**Author:** ![RMAgency](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RMAgency](https://community.localwp.com/u/RMAgency)\
**Post date:** [October 27, 2017, 9:21pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/8 "2017-10-27T21:21:26Z")

</div>

I’ve tried everything.

Getting nowhere… ☹

Shall I simply delete the site and start over?

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [October 27, 2017, 9:21pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/9 "2017-10-27T21:21:34Z")

</div>

> [@RMAgency](#):
>
> I checked the link but I’m none the wiser on what I actually need to do.

Here’s how you can reset the password with WP-CLI:

1. Right-click on the site in Local’s sidebar
2. Click on “Open Site SSH”
3. Enter `wp user update USERNAME --user_pass=NEWPASSWORD` … After the command is entered in Terminal, press Enter

`USERNAME` can also be the user’s e-mail or numeric ID.

Then, try logging in again.

---

<div class="post-metadata">

**Author:** ![RMAgency](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RMAgency](https://community.localwp.com/u/RMAgency)\
**Post date:** [October 27, 2017, 9:22pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/10 "2017-10-27T21:22:25Z")

</div>

Terminal is way over my head. I don’t want to mess around with that.

---

<div class="post-metadata">

**Author:** ![RMAgency](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RMAgency](https://community.localwp.com/u/RMAgency)\
**Post date:** [October 27, 2017, 9:23pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/11 "2017-10-27T21:23:59Z")

</div>

All I need to know is what is the email or user name for the local site? I named the site Pizza Verde and gave it a new password which I’ve tried to login with… But the user/email fails I believe.

---

<div class="post-metadata">

**Author:** ![RMAgency](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RMAgency](https://community.localwp.com/u/RMAgency)\
**Post date:** [October 27, 2017, 9:26pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/12 "2017-10-27T21:26:49Z")

</div>

Hah I’m in!

---

<div class="post-metadata">

**Author:** ![RMAgency](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RMAgency](https://community.localwp.com/u/RMAgency)\
**Post date:** [October 27, 2017, 9:27pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/13 "2017-10-27T21:27:34Z")

</div>

Please add a button to the Local dashboard that allows the user to check their username!

---

<div class="post-metadata">

**Author:** ![RMAgency](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RMAgency](https://community.localwp.com/u/RMAgency)\
**Post date:** [October 27, 2017, 9:28pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/14 "2017-10-27T21:28:15Z")

</div>

That was way more painful than it ever should have been.

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [October 27, 2017, 9:29pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/15 "2017-10-27T21:29:31Z")

</div>

Your best bet is to use WP-CLI to get the list of the users. Here’s an example with the output. Beyond this, I’m not sure how to help since it’s a local site.

Note, in the screenshot below all I typed in was `wp user list` and then `wp user update admin --user_pass=password123`.

 ![06 PM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/6/6c9b3036f58b6a6759e88f5ed02f24e957dfdfaf.png)

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [October 27, 2017, 9:32pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/16 "2017-10-27T21:32:49Z")

</div>

> [@RMAgency](#):
>
> Hah I’m in!

Glad to hear! How’d you end up getting in?

> [@RMAgency](#):
>
> Please add a button to the Local dashboard that allows the user to check their username!

We’re going to be looking into theme/plugin/user management down the road.

---

<div class="post-metadata">

**Author:** ![WEWilliams](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@WEWilliams](https://community.localwp.com/u/WEWilliams)\
**Post date:** [March 12, 2019, 1:35pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/17 "2019-03-12T13:35:45Z")

</div>

So, I’m used to resetting the password in my databaase using PHPAdmin. I tried the same thing using Adminer in my Local site, and the changed password didn’t seem to “stick.” That is, I’d change it, try to log in, it wouldn’t work, and I’d go back to Adminer and the old password was still there. How come this didn’t work? I clicked “save” at all the right times, I think… Very puzzled but also brand new to Local.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:32pm UTC](https://community.localwp.com/t/forgot-admin-password/2949/18 "2020-08-25T18:32:38Z")

</div>


