title | summary |
---|---|
Connect via SQL Shell |
Learn how to connect to your TiDB cluster via SQL Shell. |
In TiDB Cloud SQL Shell, you can try TiDB SQL, test out TiDB's compatibility with MySQL quickly, and administer database user privileges.
Note:
You cannot connect to TiDB Serverless clusters using SQL Shell. To connect to your TiDB Serverless cluster, see Connect to TiDB Serverless clusters.
To connect to your TiDB cluster using SQL shell, perform the following steps:
-
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 cluster overview page, and then click Connect in the upper-right corner. A connection dialog is displayed.
-
In the dialog, select the Web SQL Shell tab, and then click Open SQL Shell.
-
On the prompted Enter password line, enter the root password of the current cluster. Then your application is connected to the TiDB cluster.