How to query the database? #1808
-
For everyone who has the same issues as me. 1. Connect to the database server via pgadminOnce the host: db Please note NOT to use 2. Query user tableMake sure to put the table name in quotes! select * from "user"; If you just do 3. Connect to the database server via psqlWe need to expose the db port to the host system (aka your laptop). In the docker-compose.yml do this:
If you don't do this you will see the following error:
After the change, you can connect now via:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's simpler in current version:
The interface is quite intuitive |
Beta Was this translation helpful? Give feedback.
It's simpler in current version:
PostgreSQL
db
(name of the service in docker-compose)postgres
(value ofPOSTGRES_USER
in your .env file)***
(value ofPOSTGRES_PASSWORD
in your .env file)POSTGRES_DB
in your .env file)The interface is quite intuitive