This document describes how to import all the data in TencentDB for MySQL into a new Sparkling cluster. Sparkling supports a variety of data import methods and scheduled import. For more information, see Data Integration.
A MySQL database instance has been created in the TencentDB for MySQL console, and the data you want to import has been stored in the instance. It is recommended that the database and Sparkling cluster be located in the same region to ensure the stability and speed of access.
For more information about MySQL database operations, see Getting Started with TencentDB for MySQL.
Go to Cluster Management and click Data in the left navigation pane to enter the data ingestion page. Follow the steps below to complete the data ingestion from RDBMS:
Take importing the data in the default data table "metrics" in the default database "sys" in the MySQL instance as an example. Configure the data source as shown in the figure below, where you should select the MySQL region for "Region". The MySQL instance ID can be found in the MySQL console, and the APP ID can be found in Account Info.
Click Test Connectivity to verify whether it can be connected to the database where the data table to be ingested resides. After the system prompts that "Data connection is good", click Next to complete the data source configuration.
You can preview the field information in the data table on the "Data Preview" page. By default, five rows of data are extracted for preview. If there are no issues with the preview, click Next.
After completing the setup as shown in the figure below, you can create a table named "new_table", where the fields should be set as all the fields in the "metrics" table and the storage format as PARQUET.
The example in this document imports the data through a single full import task. For more import methods, see Data Integration.
You can view the current set data source, data preview, target table, and task scheduling on the "Preview" page. If there are no issues, click Done to complete the data import task setup. Click OK in the pop-up dialog box to go to the task management page.