📣
TiDB Cloud Essential is now in public preview. Try it out →

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:

  1. Open the overview page of the target instance.

    1. Log in to the TiDB Cloud console and navigate to the TiDB Instances page.

    2. Click the name of your target instance to go to its overview page.

  2. Click Connect in the upper-right corner. A connection dialog is displayed.

  3. 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.

  4. Click CA cert to download CA cert for TLS connection to TiDB instances. The CA cert supports TLS 1.2 by default.

  5. 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.

Was this page helpful?