Manage your PolarDB databases in the console.
Create a database
-
Log on to the PolarDB console. In the left-side navigation pane, click Clusters. Select your cluster's Region, and then click the cluster ID to open the details page.
-
In the left-side navigation pane, go to .
-
Click Create Database.
-
In the Create Database panel, configure the following parameters and click OK.
Parameter
Description
Database Name
-
Must start with a letter and end with a letter or a digit.
-
Can contain only lowercase letters, digits, underscores (_), and hyphens (-).
-
Must not exceed 64 characters.
-
The name must be unique within the instance.
NoteDo not use reserved keywords, such as
testormysql, as the database name.Supported Character Set
Select a character set, such as utf8mb4, utf8, gbk, and latin1.
Collate
The collation for the database.
NoteTo view the value range for this parameter, in the PolarDB Console, navigate to target cluster > Settings and Management> Databases tab and click Create Database.
Authorized Account
Select an account to access the database. You can leave this field blank and authorize an account after the database is created.
NoteOnly standard accounts are displayed here. Privileged accounts have full permissions for all databases and do not require authorization.
Account Permissions
Select the permissions to grant to the account. Valid values are Read/Write, Read-only, DML Only, DDL Only, and Read-only + Index.
Description
Enter a description for the database. The description must meet the following requirements:
-
Cannot start with
http://orhttps://. -
Must be 2 to 256 characters long.
-
Delete a database
-
Log on to the PolarDB console. In the left-side navigation pane, click Clusters. Select your cluster's Region, and then click the cluster ID to open the details page.
-
In the left-side navigation pane, go to .
-
Find the database and click Delete in the Actions column.
-
In the confirmation dialog, click OK.
FAQ
Related APIs
|
API |
Description |
|
Creates a database. |
|
|
Queries database details. |
|
|
Modifies a database description. |
|
|
Deletes a database. |