To connect to a cluster using
On the Clusters tab, select a cluster.
Click YugabyteDB Client Shell.
Make sure you are running the latest version of the Yugabyte Client shell. If you have not installed Yugabyte Client on your computer, select your operating system and copy the command to install Yugabyte Client from the command line.
Click Download CA Cert to download the root.crt certificate for TLS encryption, and install the certificate on your computer. If you are using Docker, copy the certificate to your Docker container.
Copy the YSQL connection string.
The connection string includes flags specifying the host (
host), username (
user), database (
dbname), and TLS settings (
sslrootcert). The command specifies that the connection will use the CA certificate you installed on your computer. For information on using other SSL modes, refer to SSL modes in YSQL.
Here's an example of the generated
./ysqlsh "host=740ce33e-4242-4242-a424-cc4242c4242b.aws.ybdb.io \ user=<DB USER> \ dbname=yugabyte \ sslmode=verify-full \ sslrootcert=<ROOT_CERT_PATH>"
On your computer, change directories to the directory where you installed the client shell.
Paste and run the command, replacing
<DB USER>with your database username.
yugabytewith the database name, if you're connecting to a database other than the default (yugabyte).
<ROOT_CERT_PATH>with the path to the root certificate on your computer.
ysqlsh shell opens connected to the remote cluster.
ysqlsh (11.2-YB-188.8.131.52-b0) Type "help" for help. yugabyte=#