2

How do I connect DBeaver with my CockroachDB Serverless database? I get errors that look like this:

FATAL: codeParamsRoutingFailed: missing cluster name in connection string
Jordan Lewis
  • 16,900
  • 4
  • 29
  • 46

3 Answers3

8

Make sure to include the cluster name in the database field.

The database should be something like: cluster-name-1234.databasename.

Here is a screenshot of a working configuration:

enter image description here

Jordan Lewis
  • 16,900
  • 4
  • 29
  • 46
  • The cluster name, including the tenant id, is available from the "connect" modal in the options text box (it is the --cluster value). – Ron Mar 29 '22 at 18:28
1

To find the cluster name, including the tenant id use the Connect modal from the CockroachCloud Database Page:

Connect Modal

Ron
  • 437
  • 3
  • 12
1

Most importantly, include .defaultdb to the end of the name of your database in the "Database" field. For example, databasename-dev-369.defaultdb

This was the least intuitive config detail, easily killed an hour of my time :/ Hope this helps.

martenc
  • 668
  • 6
  • 7