Updated on 2024-08-29 GMT+08:00

Database Management

This section describes how to create, manage, or delete databases on the DAS console without running SQL commands.

Creating a Database

  1. Log in to the DAS console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner, and under Databases, click Data Admin Service.
  4. In the navigation pane on the left, choose Development Tool.

    You can also click Go to Development Tool on the overview page.

  5. Locate the DB instance that you want to log in to and click Log In in the Operation column.
  6. In the upper left corner of the database list on the Home page, click Create Database.

    Figure 1 Creating a database

  7. In the displayed dialog box, enter a database name, specify a character set, and click OK.

    Figure 2 Configuring database parameters

  8. View the created database in the database list.

    Figure 3 Viewing the created database

Managing Databases

You can manage database objects such as tables, views, stored procedures, events, triggers, and functions in a created database, and perform SQL query operations.

Dropping a Database

  1. Log in to the DAS console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner, and under Databases, click Data Admin Service.
  4. In the navigation pane on the left, choose Development Tool.

    You can also click Go to Development Tool on the overview page.

  5. Locate the DB instance that you want to log in to and click Log In in the Operation column.
  6. In the database list, locate the database you want to drop.
  7. Choose More > Drop in the Operation column.

    Figure 4 Dropping a database

  8. Confirm the information and click Yes.

    Dropping a database is a high-risk operation. The database and all data in it will be removed and cannot be restored. Exercise caution when performing this operation.