title | summary |
---|---|
Connect to TiDB Cloud Dedicated via Public Connection |
Learn how to connect to your TiDB Cloud cluster via public connection. |
This document describes how to connect to your TiDB Cloud Dedicated cluster via public connection. The public connection exposes a public endpoint with traffic filters, so you can connect to your TiDB Cloud Dedicated cluster via a SQL client from your laptop.
Tip:
To learn how to connect to a TiDB Cloud Serverless cluster via public connection, see Connect to TiDB Cloud Serverless via Public Endpoint.
For public connections, TiDB Cloud Dedicated only allows client connections from addresses in the IP access list. If you have not configured the IP access list, follow the steps in Configure an IP Access List to configure it before your first connection.
To connect to a TiDB Cloud Dedicated cluster via public connection, take the following steps:
-
Open the overview page of the target cluster.
-
Log in to the TiDB Cloud console and navigate to the Clusters page of your project.
Tip:
If you have multiple projects, you can click in the lower-left corner and switch to another project.
-
Click the name of your target cluster to go to its overview page.
-
-
Click Connect in the upper-right corner. A connection dialog is displayed.
-
In the connection dialog, select Public from the Connection Type drop-down list.
If you have not configured the IP access list, click Configure IP Access List or follow the steps in Configure an IP Access List to configure it before your first connection.
-
Click CA cert to download CA cert for TLS connection to TiDB clusters. The CA cert supports TLS 1.2 version by default.
-
Choose your preferred connection method, and then refer to the connection string and sample code on the tab to connect to your cluster.
After you have successfully connected to your TiDB cluster, you can explore SQL statements with TiDB.