This feature is available in tenants of the MySQL-compatible mode. In tenants of the Oracle-compatible mode, schemas are directly bound to users. Therefore, you only need to create an account.
Procedure
You can create a database through any of the following three methods:
Method 1: Log in to the OceanBase Cloud console. On the Tenants page, click Create Database in the row for the target tenant.
Method 2: Log in to the OceanBase Cloud console. In the upper-right corner of the tenant workspace, click Create Database.
Method 3: Log in to the OceanBase Cloud console. On the Databases page, click Create Database in the upper-right corner.
The following procedure uses Method 1 as an example:
Log in to the OceanBase Cloud console.
In the left-side navigation pane, click Instances.
In the cluster list, find the target cluster instance and click its name to enter the instance workspace.
In the left-side navigation pane, click Tenants.
In the tenant management list, click the More icon in the row for the target tenant and select Create Database.
Set the following parameters as needed:
ParameterDescriptionDatabase Name Must start with a letter and can contain letters, numbers, underscores, or hyphens. Reserved keywords such as test, sys, oceanbase, information_schema, mysql, and performance_schema are not allowed. Character Set Select the character set for the database. Collation Select the collation for the character set. Remarks (Optional) The length of the remarks cannot exceed 30 characters. Click Create.