All Products
Search
Document Center

ApsaraDB for OceanBase:Create a database (MySQL mode)

Last Updated:Apr 15, 2024

The feature is available only in a MySQL tenant. In an Oracle tenant, schemas are directly bound to users. Therefore, you only need to create an account in an Oracle tenant.

Prerequisites

Before you create a database in a MySQL tenant, make sure that the following conditions are met:

  • The current tenant is not in the Creating state.

  • The current tenant is not in the Deleting state.

  • The current tenant is not in the Deleted state.

Procedure

  1. Log on to the ApsaraDB for OceanBase console.

  2. In the left-side navigation pane, click Instances.

  3. In the instance list, click the name of the target cluster instance to go to the Cluster Instance Workspace page.

  4. On the Cluster Instance Workspace page, click the name of the target tenant.

  5. On the Tenant Workspace page, click Create Database in the upper-right corner and then configure the parameters.

    Parameter

    Description

    Database Name

    The name of the database to be created. The database name must start with a lowercase letter and contain at least two characters in length. It cannot contain reserved keywords such as SYS.

    Character Set

    The character set for the database. Valid values: UTF8MB4, UTF16, and GBK.