Skip to content

Latest commit

 

History

History
72 lines (48 loc) · 3.89 KB

branch-manage.md

File metadata and controls

72 lines (48 loc) · 3.89 KB
title summary
Manage TiDB Serverless Branches
Learn How to manage TiDB Serverless branches.

Manage TiDB Serverless Branches

This document describes how to manage TiDB Serverless branches using the TiDB Cloud console. To manage it using the TiDB Cloud CLI, see ticloud branch.

Required access

For more information about permissions, see User roles.

Create a branch

Note:

You can only create branches for TiDB Serverless clusters that are created after July 5, 2023. See Limitations and quotas for more limitations.

To create a branch, perform the following steps:

  1. In the TiDB Cloud console, navigate to the Clusters page of your project, and then click the name of your target TiDB Serverless cluster to go to its overview page.
  2. Click Branches in the left navigation pane.
  3. Click Create Branch in the upper-right corner.
  4. Enter the branch name, and then click Create.

Depending on the data size in your cluster, the branch creation will be completed in a few minutes.

View branches

To view branches for your cluster, perform the following steps:

  1. In the TiDB Cloud console, navigate to the Clusters page of your project, and then click the name of your target TiDB Serverless cluster to go to its overview page.

  2. Click Branches in the left navigation pane.

    The branch list of the cluster is displayed in the right pane.

Connect to a branch

To connect to a branch, perform the following steps:

  1. In the TiDB Cloud console, navigate to the Clusters page of your project, and then click the name of your target TiDB Serverless cluster to go to its overview page.
  2. Click Branches in the left navigation pane.
  3. In the row of your target branch to be connected, click ... in the Action column.
  4. Click Connect in the drop-down list. The dialog for the connection information is displayed.
  5. Click Generate Password or Reset Password to create or reset the root password.
  6. Connect to the branch using the connection information.

Alternatively, you can get the connection string from the cluster overview page:

  1. In the TiDB Cloud console, navigate to the Clusters page of your project, and then click the name of your target TiDB Serverless cluster to go to its overview page.
  2. Click Connect in the upper-right corner.
  3. Select the branch you want to connect to in the Branch drop-down list.
  4. Click Generate Password or Reset Password to create or reset the root password.
  5. Connect to the branch using the connection information.

Delete a branch

To delete a branch, perform the following steps:

  1. In the TiDB Cloud console, navigate to the Clusters page of your project, and then click the name of your target TiDB Serverless cluster to go to its overview page.
  2. Click Branches in the left navigation pane.
  3. In the row of your target branch to be deleted, click ... in the Action column.
  4. Click Delete in the drop-down list.
  5. Confirm the deletion.

What's next