Skip to main content

CockroachDB documentation

CockroachDB is the SQL database for building global, scalable cloud services that survive disasters. As a distributed SQL database, CockroachDB combines the familiar SQL interface with the scalability and resilience of NoSQL systems.

Get started with CockroachDB

Quickstart

Get CockroachDB up and running in minutes

Install CockroachDB

Download and install CockroachDB on your system

Start a local cluster

Run a multi-node CockroachDB cluster locally

Learn CockroachDB SQL

Learn the basics of CockroachDB SQL

Why CockroachDB?

Distributed by default

CockroachDB automatically replicates your data across multiple nodes and locations, ensuring high availability and disaster recovery without complex configuration.

Horizontally scalable

Scale your database by adding nodes to your cluster. CockroachDB automatically rebalances data across all nodes to optimize performance.

Consistent and resilient

Strong consistency guarantees with automatic failover. Your cluster can survive node, datacenter, or even regional failures.

PostgreSQL compatible

Use familiar SQL syntax and PostgreSQL drivers. Migrate existing applications with minimal changes.

Cloud-native architecture

Deploy anywhere: on-premises, in the cloud, or across multiple cloud providers. Built for Kubernetes and containerized environments.

ACID transactions

Full support for distributed ACID transactions across your entire dataset, even when distributed globally.

Explore by topic

Develop

Build applications using CockroachDB:

Deploy

Deploy and manage CockroachDB in production:

Migrate

Migrate your existing database to CockroachDB:

Troubleshoot

Diagnose and resolve issues:

Additional resources

Architecture

Learn how CockroachDB works under the hood

CLI reference

Command-line interface documentation

DB Console

Monitor and manage your cluster with the web UI

FAQs

Answers to frequently asked questions

Build docs developers (and LLMs) love