Skip to content

Commit 8f0f5a5

Browse files
authored
Fix postgresl unix socket example (#852)
* Fix postgresl unix socket example * Fix user defaulting to root
1 parent edf50a7 commit 8f0f5a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/installation/choosing_database.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ In the `serverVersion` parameter you can specify the version of the PostgreSQL s
150150

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

153-
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.
153+
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.
154154
```shell
155-
DATABASE_URL="postgresql://db_user:db_password@localhost/db_name?serverVersion=12.19&charset=utf8&unix_socket=/var/run/postgresql/.s.PGSQL.5432"
155+
DATABASE_URL="postgresql://db_user@localhost/db_name?serverVersion=16.6&charset=utf8&host=/var/run/postgresql"
156156
```
157157

158158

0 commit comments

Comments
 (0)