Prerequisites
- A CockroachDB Cloud account with a cluster
- A VexiData account
Connect CockroachDB to VexiData
Get your connection details
- Log in to the CockroachDB Cloud Console
- Select your cluster
- Click the Connect button (top right)
- Select Parameters only to view individual values:
| Parameter | Example |
|---|---|
| Host | my-cluster.gcp-us-east1.cockroachlabs.cloud |
| Port | 26257 |
| Database | defaultdb |
| Username | root |
| Password | Your database password |
CockroachDB uses port 26257, not the standard PostgreSQL port
5432.Add VexiData to the IP allowlist
CockroachDB Cloud blocks all connections by default. You must add VexiData’s IP addresses.
- Go to your cluster’s Networking page
- Click the IP Allowlist tab
- Click Add Network
- Add each of VexiData’s IPs:
| Name | Network |
|---|---|
| VexiData 1 | 139.59.53.167/32 |
| VexiData 2 | 165.22.217.42/32 |
- Select CockroachDB Client for the access type
- Click Apply
IP allowlist configuration is mandatory. Your connection will fail without this step.
Add the connection in VexiData
- Go to Data Sources in VexiData
- Click PostgreSQL to open the connection form (CockroachDB is PostgreSQL-compatible)
- Fill in the details:
| Field | Value |
|---|---|
| Display Name | A name to identify this connection (e.g., “CockroachDB Production”) |
| Host | Your cluster hostname (e.g., my-cluster.gcp-us-east1.cockroachlabs.cloud) |
| Port | 26257 |
| Database | defaultdb (or your database name) |
| Schema | public (default) |
| Username | root (or your user) |
| Password | Your database password |
Troubleshooting
Connection timed out
Connection timed out
- Verify VexiData’s IPs are in your cluster’s IP Allowlist — CockroachDB blocks all connections by default
- Make sure you’re using port 26257, not
5432 - Check that your cluster is running in the CockroachDB Console
Authentication failed
Authentication failed
- Double-check your credentials from the Connect dialog in the CockroachDB Console
- If you’ve forgotten your password, reset it from the cluster’s SQL Users page
No tables visible after connecting
No tables visible after connecting
- Confirm your tables are in the
publicschema - Check the correct database name — CockroachDB uses
defaultdbby default
Some queries behave differently than PostgreSQL
Some queries behave differently than PostgreSQL
- CockroachDB is PostgreSQL wire-compatible but not identical. Most standard queries work, but some PostgreSQL-specific features (like certain data types or extensions) may not be supported