| title | Connect to Your {{{ .premium }}} Instance |
|---|---|
| summary | Learn how to connect to your {{{ .premium }}} instance via different methods. |
This document describes how to connect to your {{{ .premium }}} instance.
Tip:
To learn how to connect to a TiDB Cloud Dedicated cluster, see Connect to Your TiDB Cloud Dedicated Cluster.
After your {{{ .premium }}} instance is created on TiDB Cloud, you can connect to it via direct connections.
Direct connections mean the MySQL native connection system over TCP. You can connect to your instance using any tool that supports MySQL connection, such as MySQL client.
| Connection method | User interface | Scenario |
|---|---|---|
| Direct connections | SQL/ORM | Long-running environment, such as Java, Node.js, and Python. |
There are two network connection types for {{{ .premium }}}:
-
Private endpoint (recommended)
Private endpoint connection provides a private endpoint to allow SQL clients in your VPC to securely access services over AWS PrivateLink, which provides highly secure and one-way access to database services with simplified network management.
-
The standard connection exposes a public endpoint, so you can connect to your TiDB instance via a SQL client from your laptop.
The following table shows the network you can use:
| Connection method | Network | Description |
|---|---|---|
| Direct connections | Public or private endpoint | Direct connections can be made via both public and private endpoints. |
After you have successfully connected to your TiDB instance, you can explore SQL statements with TiDB.