Connect to the cluster
After creating a free cluster, the easiest way to connect to it is to use the cloud shell.
The cloud shell allows you to connect to and interact with your Yugabyte Cloud cluster from your browser. You have the option of using the following CLIs in the cloud shell:
- ysqlsh - YSQL shell for interacting with YugabyteDB using the YSQL API
- ycqlsh - YCQL shell, which uses the YCQL API
Cloud shell has a 15 minute connection limit. If your session expires, close your browser tab and connect again.
Connect to your cluster using the cloud shell
To use ysqlsh
to create and manage YugabyteDB databases and tables in your Yugabyte Cloud cluster, do the following:
-
On the Clusters page, ensure your cluster is selected.
-
Click Connect to display the Connect to Cluster dialog.
-
Under Cloud Shell, click Launch Cloud Shell.
-
Enter the database name (
yugabyte
), the user name (admin
), select the YSQL API and click Confirm.The cloud shell opens in a separate browser window. Cloud shell can take up to 30 seconds to be ready.
Password for user admin:
-
Enter the password for the admin user that you saved when you created the cluster.
The ysqlsh
shell prompt appears and is ready to use.
ysqlsh (11.2-YB-2.2.0.0-b0)
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
Type "help" for help.
yugabyte=#
Learn more
For information on other ways to connect to your cluster, refer to Connect to clusters.
For more information on the ysqlsh
and ycqlsh
shells, refer to ysqlsh and ycqlsh.
For more information on the YSQL and YCQL APIs, refer to YSQL API and YCQL API.