Skip to content

Latest commit

 

History

History
99 lines (66 loc) · 5.4 KB

File metadata and controls

99 lines (66 loc) · 5.4 KB
title Manage TiDB Cloud Branches
summary Learn How to manage TiDB Cloud branches.

Manage TiDB Cloud Branches

This document describes how to manage branches of your {{{ .starter }}} or {{{ .essential }}} instance 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 {{{ .starter }}} or {{{ .essential }}} instances 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 My TiDB page, and then click the name of your target {{{ .starter }}} or {{{ .essential }}} instance to go to its overview page.

  2. Click Branches in the left navigation pane.

  3. In the upper-right corner of the Branches page, click Create Branch. A dialog is displayed.

    Alternatively, to create a branch from an existing parent branch, locate the row of your target parent branch, and then click ... > Create Branch in the Action column.

  4. In the Create Branch dialog, configure the following options:

    • Name: enter a name for the branch.
    • Parent branch: select the original {{{ .starter }}} or Essential instance or an existing branch. main represents the current instance.
    • Include data up to: choose one of the following:
      • Current point in time: create a branch from the current state.
      • Specific date and time: create a branch from a specified time.
  5. Click Create.

Depending on the data size in your {{{ .starter }}} or Essential instance, the branch creation will be completed in a few minutes.

View branches

To view branches for your {{{ .starter }}} or Essential instance, perform the following steps:

  1. In the TiDB Cloud console, navigate to the My TiDB page, and then click the name of your target {{{ .starter }}} or {{{ .essential }}} instance to go to its overview page.

  2. Click Branches in the left navigation pane.

    The branch list of the {{{ .starter }}} or Essential instance 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 My TiDB page, and then click the name of your target {{{ .starter }}} or {{{ .essential }}} instance 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 overview page of your {{{ .starter }}} or Essential instance:

  1. In the TiDB Cloud console, navigate to the My TiDB page, and then click the name of your target {{{ .starter }}} or {{{ .essential }}} instance 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 My TiDB page, and then click the name of your target {{{ .starter }}} or {{{ .essential }}} instance 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.

Reset a branch

Resetting a branch synchronizes it with the latest data from its parent.

Note:

This operation is irreversible. Before resetting a branch, make sure that you have backed up any important data.

To reset a branch, perform the following steps:

  1. In the TiDB Cloud console, navigate to the My TiDB page, and then click the name of your target {{{ .starter }}} or {{{ .essential }}} instance to go to its overview page.
  2. Click Branches in the left navigation pane.
  3. In the row of your target branch to be reset, click ... in the Action column.
  4. Click Reset in the drop-down list.
  5. Confirm the reset.

What's next