Once your database status is Running, connection details are available on the database overview page.
Each database provides two endpoint types:
| Endpoint | Description | Use Case |
|---|---|---|
| Private Host | Internal network endpoint | Applications running within NexQloud |
| Public Host | SNI proxy at *.dds.dcptunnel.net | External access (must be enabled during creation) |
Toggle between Private and Public endpoints in the connection panel.
psql -h <host> -p <port> -U <username> -d <database>
You will be prompted for the password. Copy it from the overview page (click the eye icon to reveal, then copy).
postgresql://<username>:<password>@<host>:<port>/<database>
Node.js (pg)
const { Pool } = require('pg');
const pool = new Pool({
host: '<host>',
port: <port>,
user: '<username>',
password: '<password>',
database: '<database>',
ssl: true
});
const result = await pool.query('SELECT NOW()');
console.log(result.rows[0]);
Python (psycopg2)
import psycopg2
conn = psycopg2.connect(
host="<host>",
port=<port>,
user="<username>",
password="<password>",
dbname="<database>",
sslmode="require"
)
cur = conn.cursor()
cur.execute("SELECT NOW()")
print(cur.fetchone())
Go (lib/pq)
import (
"database/sql"
_ "github.com/lib/pq"
)
connStr := "host=<host> port=<port> user=<username> password=<password> dbname=<database> sslmode=require"
db, err := sql.Open("postgres", connStr)
mongosh "mongodb://<username>:<password>@<host>:<port>/<database>"
mongodb://<username>:<password>@<host>:<port>/<database>
Node.js (mongoose)
const mongoose = require('mongoose');
await mongoose.connect('mongodb://<username>:<password>@<host>:<port>/<database>');
Python (pymongo)
from pymongo import MongoClient
client = MongoClient('mongodb://<username>:<password>@<host>:<port>/<database>')
db = client['<database>']
All database connections are SSL/TLS encrypted automatically. No additional certificate setup is required — clients connect securely by default.
Your database credentials are shown on the overview page: