Skip to content

Commit

Permalink
Fix postgresl unix socket example (#852)
Browse files Browse the repository at this point in the history
* Fix postgresl unix socket example

* Fix user defaulting to root
  • Loading branch information
felbinger authored Feb 2, 2025
1 parent edf50a7 commit 8f0f5a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/installation/choosing_database.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ In the `serverVersion` parameter you can specify the version of the PostgreSQL s

The `charset` parameter specify the character set of the database. It should be set to `utf8` to ensure that all characters are stored correctly.

If you want to use a unix socket for the connection instead of a TCP connnection, you can specify the socket path in the `unix_socket` parameter.
If you want to use a unix socket for the connection instead of a TCP connnection, you can specify the socket path in the `host` parameter.
```shell
DATABASE_URL="postgresql://db_user:db_password@localhost/db_name?serverVersion=12.19&charset=utf8&unix_socket=/var/run/postgresql/.s.PGSQL.5432"
DATABASE_URL="postgresql://db_user@localhost/db_name?serverVersion=16.6&charset=utf8&host=/var/run/postgresql"
```


Expand Down

0 comments on commit 8f0f5a5

Please sign in to comment.