Data Import

Description

This topic describes how to import data into a table for backup or data migration. The table structure to be imported must be the same as that of the target table. If you import a CSV or SQL file, the data type of the target table must be the same.

Only a file smaller than 10 GB can be imported.

Procedure

  1. On the top menu bar, choose Import and Export > Import.
  2. Import a file from your local PC or an OBS bucket.

    • From your local PC

    On the Import page, click Create Task in the upper left corner. In the displayed dialog box, select a required import type, set File Source to Upload File, specify Attachment Storage, and upload a file. Select the keyspace, charset, and option, and enter the remarks as required.

    • To keep data secure, provide your own OBS bucket to store the attachments you upload. In this way, DAS automatically connects to your OBS bucket for in-memory reading.
    • If you select Delete the uploaded file upon an import success, the file you upload will be automatically deleted from the OBS bucket after being imported to the destination database.
    • From an OBS bucket

      On the Import page, click Create Task in the upper left corner. In the displayed dialog box, select a required import type, set File Source to Choose From OBS, and select the file to be imported from the displayed OBS Browser. Then, select the keyspace, charset, and option, and enter remarks as required.

    The file uploaded from an OBS bucket will not be deleted upon an import success.

  3. After settings are complete, click Create. Confirm the information again before you click OK because original data may be overwritten after data import.
  4. View the import progress in the task list or check task details.