Skip to main content
Updated October 11, 2026 Every database has a connection string ready to copy, plus code for the common clients. Pick where you connect from (the internet or your VPC), copy, and paste it into your app.

Before you start

  • A running database. See Create a database.
  • A way in: public access turned on, or a VPC connected. Without either, only the dashboard’s own tabs reach the database.

Steps

1

Open Connect

Open the database and go to the Connect tab.
2

Pick where you connect from

  • The internet: your laptop, another cloud, a tool. Shown when public access is on.
  • Your VPC: Raff servers on the same network. Shown when a VPC is connected.
If you created users, pick one under As user; otherwise the admin user raffadmin is used.
3

Copy the address

Each address card shows the port and a Copy button. Show password reveals the password in the string.
TODO: Connect tab with the transaction pooler and direct connection cards
4

Use it in your app

The code tabs give the same address ready to paste: URI, .env, and clients for each engine (for PostgreSQL: psql, node, python, go, prisma).

Which address and port

Hostnames:
  • Public: <database_id>.public.db.raffusercloud.com
  • Private (inside the VPC): <database_id>.db.raffusercloud.com
Every connection uses TLS. PostgreSQL on the public ports 5432 and 6543 finds your database by the hostname your client sends over TLS; an old client that does not send it can use the database’s own public port, shown in Access. See Networking and security and Connection pooling.

Examples

The Connect tab fills in your real host, port and password. To verify the server certificate instead of only encrypting, download the CA certificate on the Connect tab and use sslmode=verify-full (PostgreSQL) or --cacert (Valkey).

From your laptop to a private database

A database on a VPC only, without public access, is reached through a VM on the same VPC:
Then connect to localhost:5432. The Connect tab shows this line with your values.

Next steps

Manage users

Give each app its own user and password.

Connection pooling

Pooled or direct, and why.
Last modified on October 11, 2026