You can create and manage all PolarDB databases in the console.
Create a database
In the upper-left corner, select the region in which the cluster is deployed.
Find the cluster and click its ID.
In the left-side navigation pane, choose .
Click Create Database.
In the Create Database panel, configure the following parameters.
Parameter
Description
Database Name
The name must start with a letter and end with a letter or a digit.
The name can contain lowercase letters, digits, underscores (_), and hyphens (-).
The name can contain up to 64 characters in length.
The name must be unique in your PolarDB instance.
NoteDo not use reserved words as database names, such as
test
ormysql
.Supported Character Set
Select the character set supported by the database, such as utf8mb4, utf8, gbk, latin1, etc.
Collate
Set the character set collation of databases.
NoteTo view the valid values for this parameter, perform the following steps: Log on to the PolarDB console and click the ID of a cluster. In the left-side navigation pane, choose
. Then, click Create Database.Authorized Account
Select the account that you want to authorize to access this database. You can leave this parameter empty and bind an account after the database is created.
NoteOnly standard accounts are available in the drop-down list. Privileged accounts have all the permissions on all databases. You do not need to authorize the privileged accounts to access the database.
Account Permissions
Select the permission that you want to grant to the selected account. Valid values: Read/Write, Read-only, DML Only, DDL Only, or Read-only + Index.
Description
Enter a description for the database. The description helps facilitate subsequent database management. The description must meet the following requirements:
It cannot start with
http://
orhttps://
.It must be 2 to 256 characters in length.
Click OK.
Log on to the PolarDB console.
Delete a database
In the upper-left corner, select the region in which the cluster is deployed.
Find the cluster and click its ID.
In the left-side navigation pane, choose .
Find the database that you want to delete and click Delete in the Actions column.
In the dialog box that appears, click OK.
Log on to the PolarDB console.
Related API operations
API | Description |
Creates a database. | |
Queries the database list. | |
Modifies the description of a database. | |
Deletes a database. |