# Lost postgres Password

**URL:** <https://community.fly.io/t/lost-postgres-password/4192>\
**Category:** Questions / Help\
**Tags:** postgres\
**Created:** [February 24, 2022, 8:00am UTC](https://community.fly.io/t/lost-postgres-password/4192 "2022-02-24T08:00:20Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/mark/32/15656_2.png) [@Mark](https://community.fly.io/u/Mark)\
**Post date:** [February 24, 2022, 6:51pm UTC](https://community.fly.io/t/lost-postgres-password/4192/3 "2022-02-24T18:51:28Z")

</div>

Hello @Claudio! If you have an app deployed, you can `fly ssh console` and then run

```auto
echo $DATABASE_URL

```

And it will print it out. It is this ENV variable that is set when you attach a DB.

Hope that helps!

---

_[View the full topic](https://community.fly.io/t/lost-postgres-password/4192)._
