You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This page shows you how to set up the connection to a Serverless SQL Database using the Scaleway console.
13
12
14
13
## Overview
15
14
16
15
To connect to a Serverless SQL Database, you can either use a **connection string**, or **connection parameters**.
17
16
18
-
- A connection string provides the necessary information and parameters to establish a connection between an [IAM user](/iam/concepts/#user) or [application](/iam/concepts/#application), and the database. The string is written as follows:
The `?sslmode=require` parameter is mandatory to connect to your database. Refer to the [dedicated documentation](/serverless-sql-databases/api-cli/secure-connection-ssl-tls/) for more information about SSL connection to Serverless SQL Databases.
24
-
</Message>
25
-
26
-
- Connection parameters provide the necessary information and parameters to connect an [IAM user](/iam/concepts/#user) or [application](/iam/concepts/#application) to a database. The parameters are expressed in the `KEY="value"` format, as follows:
27
-
28
-
```sh
29
-
PGUSER="user-or-application-id"
30
-
PGPASSWORD="api-secret-key"
31
-
PGHOST="database-hostname"
32
-
PGPORT="5432"
33
-
PGDATABASE="database-name"
34
-
```
35
-
36
-
<Messagetype="note">
37
-
The `PGSSLMODE="require"` parameter is required to connect to your database, but can be omitted as it is provided by default by most SQL clients. Refer to the [dedicated documentation](/serverless-sql-databases/api-cli/secure-connection-ssl-tls/) for more information about SSL connection to Serverless SQL Databases.
38
-
</Message>
17
+
- A connection string provides the necessary information and parameters to establish a connection between an [IAM user](/iam/concepts/#user) or [application](/iam/concepts/#application), and the database. The string is written as follows:
The `?sslmode=require` parameter is mandatory to connect to your database. Refer to the [dedicated documentation](/serverless-sql-databases/api-cli/secure-connection-ssl-tls/) for more information about SSL connection to Serverless SQL Databases.
23
+
</Message>
24
+
25
+
- Connection parameters provide the necessary information and parameters to connect an [IAM user](/iam/concepts/#user) or [application](/iam/concepts/#application) to a database. The parameters are expressed in the `KEY="value"` format, as follows:
26
+
27
+
```sh
28
+
PGUSER="user-or-application-id"
29
+
PGPASSWORD="api-secret-key"
30
+
PGHOST="database-hostname"
31
+
PGPORT="5432"
32
+
PGDATABASE="database-name"
33
+
```
34
+
35
+
<Messagetype="note">
36
+
The `PGSSLMODE="require"` parameter is required to connect to your database, but can be omitted as it is provided by default by most SQL clients. Refer to the [dedicated documentation](/serverless-sql-databases/api-cli/secure-connection-ssl-tls/) for more information about SSL connection to Serverless SQL Databases.
0 commit comments