Skip to content

Commit 31adc43

Browse files
committed
chore(docs): add connection string explainer
1 parent ac8da00 commit 31adc43

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

apps/docs/content/docs/postgres/database/direct-connections.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,19 @@ In order to get a direct connection string, you need to:
3232
When you connect to Prisma Postgres via direct TCP, your [connection string](/orm/reference/connection-urls) looks as follows:
3333

3434
```bash
35-
DATABASE_URL="postgres://USER:PASSWORD@db.prisma.io:5432/?sslmode=require"
35+
DATABASE_URL="postgres://USER:PASSWORD@HOST:PORT/DATABASE_NAME?sslmode=require"
3636
```
3737

38+
This is built up from the following parts:
39+
40+
- **User**: The name of your database user
41+
- **Password**: The password for your database user
42+
- **Host**: The IP or domain name of the machine where your database server is running
43+
- **Port**: The port on which your database server is running
44+
- **Database name**: The name of the database you want to use
45+
46+
47+
3848
The `USER` and `PASSWORD` values are provided when you generate credentials for your Prisma Postgres instance in the [Prisma Console](https://console.prisma.io). Here is an example with sample values:
3949

4050
```bash

0 commit comments

Comments
 (0)