All Products
Search
Document Center

ApsaraDB RDS:Export data from DMS to an SQL, CSV, or Excel file

Last Updated:Mar 28, 2026

Data Management (DMS) lets you export table data from ApsaraDB RDS directly to your local machine in three formats:

FormatBest for
CSVSpreadsheets (Excel, Google Sheets) and data import tools
SQLRestoring data to another database instance via INSERT statements
ExcelNative .xlsx workbooks without conversion

Prerequisites

Before you begin, ensure that you have:

  • Access to the DMS console

  • An ApsaraDB RDS instance with data to export

  • Permission to perform database export operations in DMS

Verify source data

In the DMS console, confirm that the table you want to export is accessible and displays data correctly.

Check source data

Check the table character set

Run the following statement to confirm the table's character set. Use the result to select the correct encoding when configuring the export task.

show create table <Table name>;
View table character set

Create an export task

  1. In the DMS console, go to Database Development > Data Export > Database Export.

  2. Click Database Export.

  3. Select the table to export, configure the following parameters, and then click Submit.

    If you plan to restore data from an exported SQL file, set Export content to Data & Structure before submitting the task.
    ParameterDescription
    File FormatSelect the output format: CSV, SQL, or Excel.
    Exported Structure TypeChoose what to include: structure only, data only, or both structure and data.
    Export contentSelect Data & Structure to export both the table schema and row data. If you plan to use the SQL file to restore data to another instance, you must use this option — selecting structure only restores an empty table.

    Configure export task

FAQ

When I restore data using an exported SQL file, only the table structure appears — no rows. Why?

The export task was configured with Export content set to structure only instead of Data & Structure. To restore both the schema and data:

  1. Set Export content to Data & Structure when creating the export task.

  2. On the target self-managed instance, create the required databases.

  3. Run the exported SQL scripts against those databases.