Updated on 2026-11-03 GMT+08:00

Creating a Database

Scenarios

After a TaurusDB instance is created, you can create databases on it.

Constraints

  • This operation is not allowed when another operation is being performed on your DB instance.
  • After a database is created, the database name cannot be changed.
  • An account with read-only or read/write permissions on all databases can still be granted read-only or read/write permissions on specific databases. The account's actual permissions are a combination of permissions on all and specific databases.

Procedure

  1. Log in to the TaurusDB console.
  2. Click in the upper left corner and select a region.
  3. On the Instances page, click the instance name.
  4. In the navigation pane, choose Databases.
  5. Click Create Database, configure the database and authorized account information in the displayed dialog box, and click OK.

    Figure 1 Creating a database

    Table 1 Parameter description

    Parameter

    Description

    Database Name

    The database name can consist of 1 to 64 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed. The total number of hyphens (-) cannot exceed 10.

    Character Set

    Select a character set as required.

    Authorized Account

    Select one or more unauthorized accounts from the drop-down list. In the account list, select the target accounts and grant them read/write or read-only permissions on the database.

    After granting permissions, you can click Revoke Permissions and then grant permissions again as needed.

    If you do not have any unauthorized accounts, click Create Account, enter the required account information, and click OK.

    Description

    The description can consist of up to 512 characters. It cannot contain carriage returns or any of the following special characters: !<"='>&

  6. After the database is created, authorize or delete it on the Databases page. You can search for the desired database by character set and database name.
  1. Log in to the TaurusDB console.
  2. Click in the upper left corner and select a region.
  3. On the Instances page, locate an instance and click Log In in the Operation column.
  4. On the displayed DAS login page, enter the username and password and click Log In.
  5. Create a database.

    You can use either of the following methods.

    1. On the home page, click Create Database. In the displayed dialog box, set the database name, character set, and collation and click OK.
      Figure 2 Creating a database
    2. Choose SQL Operations > SQL Window. In the displayed SQL window, select the target database and run the following command:
      create database database_name;