All Products
Search
Document Center

ApsaraDB for MyBase:Manage databases

Last Updated:Jun 21, 2026

This topic describes how to create and delete databases in an ApsaraDB MyBase for MySQL instance.

Prerequisites

You have created an ApsaraDB MyBase for MySQL instance. For more information, see Create an ApsaraDB MyBase for MySQL instance.

Create a database

  1. Log on to the ApsaraDB for MyBase console.

  2. In the upper-left corner of the page, select the target region.

  3. In the navigation pane on the left, click Instances > MySQL.

  4. Find the target instance, click Details in the Actions column, and then choose Databases.

  5. On the Databases page, click Create Database.

  6. In the Create Database dialog box, configure the following parameters.

    Parameter

    Description

    Database name

    • The name can be up to 64 characters long.

    • It must start with a letter and end with a letter or a digit.

    • It can contain only lowercase letters, digits, underscores (_), and hyphens (-).

    • The database name must be unique within the instance.

    Supported character set

    Select a character set based on your business requirements.

    Authorized account

    Select the accounts that you want to authorize to access the database. You can also perform one of the following operations:

    Note

    Only standard accounts are displayed. A privileged account has full permissions on all databases and does not require authorization.

    Description

    Optional. Enter a description for the database to help you manage it later. The description can be up to 256 characters long.

  7. Click Create.

Delete a database using the console

  1. Log on to the ApsaraDB for MyBase console.

  2. In the upper-left corner of the page, select the target region.

  3. In the navigation pane on the left, click Instances > MySQL.

  4. Find the target instance, click Details in the Actions column, and then choose Databases.

  5. Find the database to delete and click Delete in the Actions column.

  6. In the confirmation dialog box, click OK.

  7. In the dialog box that appears, complete the SMS verification.

Delete a database using the CLI

  1. Connect to the instance. For more information, see Connect to an ApsaraDB MyBase for MySQL instance.

  2. Run the following command to delete a database:

    drop database <database name>;