# Postgresql credentials

**URL:** <https://meta.discourse.org/t/postgresql-credentials/280959>\
**Category:** Self-hosting\
**Created:** [October 3, 2023, 9:00pm UTC](https://meta.discourse.org/t/postgresql-credentials/280959 "2023-10-03T21:00:37Z")\
**Posts on this page:** 3\
**Page:** 1

## AI-generated summary

[inj3ct0r](/t/-/280959/1) requests PostgreSQL connection details, specifically the server, database name, username, and port. [merefield](/t/-/280959/2) provides the necessary credentials for accessing the database via the CLI inside the Docker container: the port is `5432`, the user is `postgres`, and the database name is `discourse`. However, [pfaffman](/t/-/280959/3) advises that these credentials are only accessible within the container and suggests that inj3ct0r clarify their actual goal, recommending the Data Explorer plugin as an alternative for external data access.

<div class="post-metadata">

**Author:** ![inj3ct0r](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/inj3ct0r/32/324428_2.png) [@inj3ct0r](https://meta.discourse.org/u/inj3ct0r)\
**Post date:** [October 3, 2023, 9:00pm UTC](https://meta.discourse.org/t/postgresql-credentials/280959/1 "2023-10-03T21:00:37Z")

</div>

Hello,

I need these information how could i got it ?

PostgreSQL server  
PostgreSQL database name  
PostgreSQL username  
PostgreSQL port

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [October 3, 2023, 9:07pm UTC](https://meta.discourse.org/t/postgresql-credentials/280959/2 "2023-10-03T21:07:27Z")

</div>

If you are trying to get into the Postgres CLI, enter the container with:

`./launcher enter app`

then run `su postgres -c 'psql discourse'`

The port is `5432`  
The user is `postgres`  
The database name is `discourse`

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [October 3, 2023, 9:10pm UTC](https://meta.discourse.org/t/postgresql-credentials/280959/3 "2023-10-03T21:10:01Z")

</div>

> [@inj3ct0r](#):
>
> I need these information how could i got it ?

You might get a more useful answer if you’ll share what you really want to do that you think the postgres information will help. It’s accessible only inside the docker container, so you won’t be able to connect to it with any tools outside the docker container.

Maybe you want the [data explorer](https://meta.discourse.org/t/32566?silent=true) plugin, for example.
