Connect to TiDB Cloud Starter or Essential via Public Endpoint
This document describes how to connect to your TiDB Cloud Starter or TiDB Cloud Essential instance via a public endpoint, using a SQL client from your computer, as well as how to disable a public endpoint.
Choose an endpoint model
Depending on your TiDB Cloud plan, choose the appropriate endpoint model:
- For TiDB Cloud Starter instances or for TiDB Cloud Essential instances created before July 1, 2026, use the endpoint shared model. In this model, a single public endpoint can be shared by multiple TiDB Cloud Starter and Essential instances in the same region.
- For TiDB Cloud Essential instances created starting July 1, 2026, use the endpoint exclusive model. In this model, each TiDB Cloud Essential instance uses its own standalone public endpoint. This model eliminates the need to include the account prefix when connecting, but you need to repeat the setup steps for each TiDB Cloud Essential instance.
Connect via a public endpoint (endpoint shared model)
To connect to a TiDB Cloud Starter or TiDB Cloud Essential instance via public endpoint using the shared model, take the following steps:
Navigate to the My TiDB page, and then click the name of your target TiDB Cloud Starter or Essential instance to go to its overview page.
Click Connect in the upper-right corner. A connection dialog is displayed.
In the dialog, keep the default setting of the connection type as
Public, and select your preferred connection method and operating system to get the corresponding connection string.TiDB Cloud lets you create branches for your TiDB Cloud Starter instance. After a branch is created, you can choose to connect to the branch via the Branch drop-down list.
mainrepresents the TiDB Cloud Starter instance itself.If you have not set a password yet, click Generate Password to generate a random password. The generated password will not show again, so save your password in a secure location.
Connect to your TiDB Cloud Starter or Essential instance with the connection string.
Connect via a public endpoint (endpoint exclusive model)
In the endpoint exclusive model, each TiDB Cloud Essential instance uses its own standalone public endpoint. This model eliminates the need to include the account prefix when connecting, but you need to repeat the setup steps for each TiDB Cloud Essential instance.
To connect to a TiDB Cloud Essential instance via a public endpoint using the exclusive model, take the following steps:
Open the overview page of the target instance.
Log in to the TiDB Cloud console and navigate to the My TiDB 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 the public connection is disabled, click Settings > Networking in the left pane, and then enable the Public Endpoint option on the Networking page.
- If you have not configured the IP access list, click Configure IP Access List to configure it before your first connection.
- If you have not configured a root password for your TiDB Cloud Essential instance, click Set Root Password and set it.
Click CA cert to download the CA cert for TLS connection to TiDB Cloud Essential instances. The CA cert supports TLS 1.2 by default.
Choose your preferred connection method in the Connection with drop-down list, and then refer to the connection string to connect to your instance.
Disable a public endpoint
If you do not need to use a public endpoint of a TiDB Cloud Starter or TiDB Cloud Essential instance, you can disable it to prevent connections from the internet:
Navigate to the My TiDB page, and then click the name of your target TiDB Cloud Starter or Essential instance to go to its overview page.
In the left navigation pane, click Settings > Networking.
On the Networking page, click Disable for Public Endpoint. A confirmation dialog is displayed.
Click Disable in the confirmation dialog.
After disabling the public endpoint, the Public entry in the Connection Type drop-down list of the connect dialog is disabled. If users are still trying to access the TiDB Cloud Starter or Essential instance from the public endpoint, they will get an error.
You can re-enable the public endpoint after disabling it:
Navigate to the My TiDB page, and then click the name of your target TiDB Cloud Starter or Essential instance to go to its overview page.
In the left navigation pane, click Settings > Networking.
On the Networking page, click Enable.
What's next
After you have successfully connected to your TiDB Cloud Starter or Essential instance, you can explore SQL statements with TiDB.