This topic describes how to import MaxCompute data to AnalyticDB for MySQL.
Prerequisites
- Source data is prepared. For more information, see Prepare and Quick Start.
The following table is created in MaxCompute through the table creation statement. For more information, see Table-level operations. If you have created source data, skip this step.
CREATE TABLE IF NOT EXISTS odps_nopart_import_test ( uid STRING, other STRING ) LIFECYCLE 3;
The data within a file named odps_nopart_import_test.txt is imported to a table named odps_nopart_import_test. For more information, see Create tables and import data.
- The preparations for using AnalyticDB for MySQL are completed. For example, a cluster is created and a whitelist is configured. An account and a database are created. For more information, see Quick start of AnalyticDB for MySQL.
Note If AnalyticDB MySQL cluster is in elastic mode, log on to the AnalyticDB MySQL console and view the cluster information. Enable Elastic Network Interface (ENI) in the Network
Information section.
