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.
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.

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
<database_id>-ro.public.db.raffusercloud.com on port 5432 from the internet, and the private hostname on port 5433 inside the VPC. See High availability and read replicas.
Connections use TLS, and databases created from October 13, 2026 refuse any without it. 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
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: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.