Before You Begin
You’ll need:- A CockroachDB Cloud account (sign up at cockroachlabs.cloud)
- A modern web browser
- (Optional) Command-line access for SQL client connection
Create a Free Trial Cluster
Sign Up
Navigate to cockroachlabs.cloud and create a new account or sign in with SSO.
Configure Cluster
- Cloud Provider: Select AWS or GCP
- Regions: Choose a region close to you
- Capacity: Use default settings (4-8 vCPUs recommended)
Apply Trial Credits
The 30-day trial code is automatically applied. Verify you see the trial credit on the summary.
Your trial includes $400 in credits, valid for 30 days. Be sure to delete your trial cluster before the trial expires to avoid charges.
Create a SQL User
Before connecting to your cluster, you need to create a SQL user.Add New User
Click Add User and enter:
- Username: Choose a username (e.g.,
myuser) - Password: Create a strong password
Authorize Your Network
CockroachDB Cloud requires you to authorize networks that can connect to your cluster.Add Your IP
Click Add Network and select Current Network to automatically add your current IP address.
Connect to Your Cluster
You can connect to your cluster using thecockroach SQL client or any PostgreSQL-compatible driver.
Using CockroachDB SQL Client
Download the Client
Download the CockroachDB binary for your operating system from the Connect dialog.
Get Connection String
Click Connect in the Console and select CockroachDB Client. Copy the connection command provided.
Using Application Connection
For connecting from your application, select your language from the Connect dialog:Run Your First Query
Once connected, try running some SQL commands:Monitor Your Cluster
You can monitor your cluster’s performance in the Cloud Console:- Overview: View cluster health and key metrics
- Metrics: Detailed performance charts
- SQL Activity: Monitor queries and transactions
- Insights: Performance recommendations
Clean Up
When you’re done experimenting:Disable Deletion Protection
Navigate to the cluster’s Overview page and disable deletion protection if enabled.
Next Steps
Build an App
Build a sample application
Migrate Data
Migrate your existing data
Learn SQL
Learn CockroachDB SQL
Manage Users
Create and manage SQL users