Sign InTry Free

TiDB Cloud Quick Start

Estimated completion time: 20 minutes

This tutorial guides you through an easy way to get started with your TiDB Cloud.

Step 1. Create a TiDB cluster

TiDB Cloud Serverless Tier (Beta) is the best way to get started with TiDB Cloud. To create a free Serverless Tier cluster, take the following steps:

  1. If you do not have a TiDB Cloud account, click here to sign up for an account.

    You can either sign up with email and password so that you can manage your password using TiDB Cloud, or choose your Google, GitHub, or Microsoft account for single sign-on (SSO) to TiDB Cloud.

  2. Log in to your TiDB Cloud account.

    The Clusters page is displayed by default.

  3. For new sign-up users, TiDB Cloud creates a default Serverless Tier cluster Cluster0 for you automatically.

    • To try out TiDB Cloud features instantly with this default cluster, go to Step 2. Try AI-powered Chat2Query (beta).

    • To try creating a new Serverless Tier cluster on your own, take the following operations:

      1. Click Create Cluster.
      2. On the Create Cluster page, Serverless Tier is selected by default. Update the default cluster name if necessary, select a target region of your cluster, and then click Create. Your Serverless Tier cluster will be created in approximately 30 seconds.

Step 2. Try AI-powered Chat2Query (beta)

TiDB Cloud is powered by AI. You can use Chat2Query (beta), an AI-powered SQL editor in the TiDB Cloud console, to maximize your data value.

In Chat2Query, you can either simply type -- followed by your instructions to let AI generate SQL queries automatically or write SQL queries manually, and then run SQL queries against databases without a terminal.

  1. On the Clusters page, click a cluster name to go to its overview page, and then click Chat2Query in the left navigation pane.

  2. To try TiDB Cloud AI capacity, follow the on-screen instructions to allow PingCAP and OpenAI to use your code snippets to research and improve the services, and then click Save and Get Started.

  3. In the editor, you can either simply type -- followed by your instructions to let AI generate SQL queries automatically or write SQL queries manually.

  4. Run SQL queries.

    • macOS
    • Windows/Linux

    For macOS:

    • If you have only one query in the editor, to run it, press ⌘ + Enter or click Run.

    • If you have multiple queries in the editor, to run one or several of them sequentially, select the lines of the target queries with your cursor, and then press ⌘ + Enter or click Run.

    • To run all queries in the editor sequentially, press ⇧ + ⌘ + Enter, or select the lines of all queries with your cursor and click Run.

    For Windows or Linux:

    • If you have only one query in the editor, to run it, press Ctrl + Enter or click Run.

    • If you have multiple queries in the editor, to run one or several of them sequentially, select the lines of the target queries with your cursor, and then press Ctrl + Enter or click Run.

    • To run all queries in the editor sequentially, press Shift + Ctrl + Enter, or select the lines of all queries with your cursor and click Run.

After running the queries, you can see the query logs and results immediately at the bottom of the page.

Step 3. Try Playground

After your TiDB Cloud cluster is created, you can also quickly start experimenting with TiDB using the pre-loaded sample data in TiDB Cloud Playground.

On the Clusters page, click the name of your newly created cluster to go to its overview page, and then click Playground in the left navigation pane.

Step 4. Load sample data

After trying Plaground, you can load sample data to your TiDB Cloud cluster. We provide Capital Bikeshare sample data for you to easily import data and run sample queries.

  1. On your cluster overview page, click Import in the left navigation pane.

  2. On the Import page, click Import Data in the upper-right corner, and then select From S3.

  3. Fill in the import parameters:

    • Data format: select SQL File
    • Bucket URI: s3://tidbcloud-sample-data/data-ingestion/
    • Role ARN: arn:aws:iam::801626783489:role/import-sample-access

    If the region of the bucket is different from your cluster, confirm the compliance of cross region. Click Next.

  4. Add the table filter rules if needed. For the sample data, you can skip this step. Click Next.

  5. On the Preview page, confirm the data to be imported and then click Start Import.

The data import process will take several minutes. When the data import progress shows Finished, you have successfully imported the sample data and the database schema to your database in TiDB Cloud.

What's next

Download PDFRequest docs changesAsk questions on TiDB Forum
Was this page helpful?
Open Source Ecosystem
TiDB
TiKV
TiSpark
Chaos Mesh
© 2023 PingCAP. All Rights Reserved.