> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dbpilot.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect to CockroachDB

To connect to a CockroachDB database:

1. Click the connection selector button
2. Then click "Add connection"

![Add connection button](https://mintlify.s3.us-west-1.amazonaws.com/dbpilot/resources/add-connection.png)

Next, click the "CockroachDB" button:

![Select new connection type](https://mintlify.s3.us-west-1.amazonaws.com/dbpilot/resources/add-connection-cockroach.png)

Then, fill in your connection details. Afterwards, click "Save":

![New connection form](https://mintlify.s3.us-west-1.amazonaws.com/dbpilot/resources/form-cockroach.png)

* **Name**: An arbitrary name to identify the connection in DB Pilot.
* **Database**:  The name of the database to connect to.
* **Host**: The address of your CockroachDB server. Leave empty to use to use default of `127.0.0.1`.
* **Port**: The port of your CockroachDB server. Leave empty to use default of `26257`.
* **User**: The username for authentication. Leave empty to use your system username as default.
* **Password**: The password for authentication. Leave empty if no password is required.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.