# Comment réinitialiser le mot de passe des utilisateurs dans la base de données PostgreSQL

**URL:** <https://meta.discourse.org/t/how-to-reset-password-for-users-in-postgresql-database/246690>\
**Category:** Self-hosting\
**Created:** [Novembre 25, 2022, 2:04 UTC](https://meta.discourse.org/t/how-to-reset-password-for-users-in-postgresql-database/246690 "2022-11-25T02:04:11Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Li\_Bruce](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/li_bruce/32/283163_2.png) [@Li\_Bruce](https://meta.discourse.org/u/Li_Bruce)\
**Post date:** [Décembre 2, 2022, 8:33 UTC](https://meta.discourse.org/t/how-to-reset-password-for-users-in-postgresql-database/246690/4 "2022-12-02T08:33:04Z")

</div>

@supermathie , merci beaucoup !  
Nous pouvons réinitialiser le mot de passe en utilisant

```plaintext
RAILS_ENV=production rails runner 'User.find_by_email("admin@example.com").update!(password:"AdminAdmin1234566xxxxxx")'

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-reset-password-for-users-in-postgresql-database/246690)._
