Connect to TiDB Cloud Premium via Public Connection
This document describes how to connect to your TiDB Cloud Premium instance via public connection. The public connection exposes a public endpoint with traffic filters, so you can connect to your TiDB Cloud Premium instance via a SQL client from your laptop.
Prerequisite: Configure IP access list
For public connections, TiDB Cloud Premium 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.
Connect to the instance
To connect to a TiDB Cloud Premium instance via public connection, take the following steps:
Open the overview page of the target instance.
Log in to the TiDB Cloud console and navigate to the TiDB Instances page.
Click the name of your target instance 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 instances. The CA cert supports TLS 1.2 by default.
Choose your preferred connection method, and then refer to the connection string and sample code on the tab to connect to your instance.
What's next
After you have successfully connected to your TiDB instance, you can explore SQL statements with TiDB.