Design and Manage Cockroach Databases Visually with DbSchema

DbSchema lets you design, manage, and document Cockroach databases. Create ER diagrams, define tables and columns, and generate SQL scripts - with or without a live database connection.

Use Git to share the design, compare it with the Cockroach database, and deploy changes. DbSchema also includes a data editor, query builder, and HTML5 documentation - everything you need in one tool.

DbSchema Database Designer

Download DbSchema

How to Connect to Cockroach Database

  1. Access the Connection Dialog

    Choose "Connect to the database" or "New Model Connected to the Database" will let you select your database and open the Connection Dialog.

    DbSchema automatically downloads the JDBC driver to connect to your database.

  2. Configure the Connection
  3. In the Connection Dialog window, select the JDBC URL you want to connect with. If your database is running in the cloud, choose Edit Manually and insert the JDBC URL from the cloud console.

    Enter the host name, the authentication details, select your database as described in the Connection Dialog page.

  4. Troubleshoot Firewall Issues
  5. If you encounter connection issues, it may be due to firewall settings. Read how to enable Firewall Connections.
Remember to enable Windows Firewalls Firewalls & anti-viruses may block database connections.

On cockroachlabs.cloud, select the database, then click on "Connect" (top right of page). On the Connect popup select "Java".

Connect to Cockroach

Copy the JDBC URL, replace the password and in the DbSchema connection dialog select 'Edit Manually' in the Connection Method, and paste the URL into the URL field.

DbSchema Connection Dialog