> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# BladePipe

> How to use BladePipe to replicate data in real time from databases and message queues into the database.

## Introduction

BladePipe is a **real-time end-to-end data replication tool**, moving data between **30+** databases, message queues, search engines, caching systems, real-time data warehouses, data lakes and more, with **ultra-low latency**. It features efficiency, stability and scalability, compatibility with diverse database engines, one-stop management, enhanced security, and complex data transformation. BladePipe helps to break down data silos, increasing the value of data.

![image.png](https://mintcdn.com/mirrorship-docs/8FakUMFrFjmoxRt5/documents/images/f3bdc4682cd7a6bce7d8f80c.png?fit=max\&auto=format\&n=8FakUMFrFjmoxRt5\&q=85\&s=14f017f66efac10dd65f15a5e1822488)

## Features

BladePipe presents a visualized management interface, allowing you to easily create DataJobs to achieve **schema migration, data migration, synchronization, verification and correction**, and more. In addition, it supports more refined and customized configurations by parameter settings. Now BladePipe supports data movement from the following source DataSources to the database:

| Source DataSource | Schema Migration | Data Migration | Data Sync | Verification & Correction |
| - | - | - | - | - |
| MySQL/MariaDB/AuroraMySQL | Yes | Yes | Yes | Yes |
| Oracle | Yes | Yes | Yes | Yes |
| PostgreSQL/AuroraPostgreSQL | Yes | Yes | Yes | Yes |
| SQL Server | Yes | Yes | Yes | Yes |
| Kafka | No | No | Yes | No |
| AutoMQ | No | No | Yes | No |
| TiDB | Yes | Yes | Yes | Yes |
| Hana | Yes | Yes | Yes | Yes |
| PolarDB for MySQL | Yes | Yes | Yes | Yes |
| Db2 | Yes | Yes | Yes | Yes |

**Info**

For more information on supported functions and parameter settings, refer to [BladePipe Connections](https://www.bladepipe.com/docs/dataMigrationAndSync/connection/mysql2/?target=StarRocks).

## Installation

[BladePipe](https://www.bladepipe.com/docs/quick/quick_start/)

## Example

Taking a MySQL instance as an example, the following section describes how to migrate data from MySQL to the database.

### Add DataSources

1. Log in to the [BladePipe Cloud](https://cloud.bladepipe.com/). Click **DataSource** > **Add DataSource**.

2. Select **the database** as the **Type**, and fill in the setup form.

   * **Client Address**：The port the database provided to MySQL Client. BladePipe queries the metadata in databases via it.
   * **Account**: The user name of the database. The INSERT privilege is required to write data to the database. Follow the instruction provided in [GRANT](/documents/4.2/sql-reference/sql-statements/account-management/GRANT.md) to grant the database user the INSERT privilege.
   * **Http Address**：The port used to receive the request from BladePipe to write data to the database.

   ![image.png](https://mintcdn.com/mirrorship-docs/sL46GVQByWEibCzI/documents/images/69fd3d11596bb3ebed76c603.png?fit=max\&auto=format\&n=sL46GVQByWEibCzI\&q=85\&s=0d4a10392123de57abecb0c62adff514)

3. Click **Test Connection**. After the connection is successful, click **Add DataSource** to add the DataSource.

4. Add a MySQL DataSource following the above steps.

### Create DataJob

1. Click **DataJob** > [**Create DataJob**](https://www.bladepipe.com/docs/operation/job_manage/create_job/create_full_incre_task/).

2. Select the source and target DataSources, and click **Test Connection** to ensure the connection to the source and target DataSources are both successful.

   ![image.png](https://mintcdn.com/mirrorship-docs/sL46GVQByWEibCzI/documents/images/8863bcebcd379ee4f979c4b0.png?fit=max\&auto=format\&n=sL46GVQByWEibCzI\&q=85\&s=d14a8dc5724ea3b3c7b24cba3b7ab70a)

3. Select **Incremental** for DataJob Type, together with the **Full Data** option.

   ![image.png](https://mintcdn.com/mirrorship-docs/PYpCw6ZrekIEuuQL/documents/images/bc943d03c037f8c495b4ece0.png?fit=max\&auto=format\&n=PYpCw6ZrekIEuuQL\&q=85\&s=6edec465df7e0487d9b9bf732a460b8f)

4. Select the tables to be replicated. **Note that the target tables automatically created after Schema Migration have primary keys, so source tables without primary keys are not supported currently**.

   ![image.png](https://mintcdn.com/mirrorship-docs/8gpPdHU-sBXASb5i/documents/images/18c60cfd26643fa65857a70e.png?fit=max\&auto=format\&n=8gpPdHU-sBXASb5i\&q=85\&s=f2fd375604a5416bed91258a630f2d87)

5. Select the columns to be replicated.

   ![image.png](https://mintcdn.com/mirrorship-docs/8FakUMFrFjmoxRt5/documents/images/d521556f446e4e5851e87c28.png?fit=max\&auto=format\&n=8FakUMFrFjmoxRt5\&q=85\&s=a3b99a368dd61270f08121ab1a85638c)

6. Confirm the DataJob creation.

   ![image.png](https://mintcdn.com/mirrorship-docs/sL46GVQByWEibCzI/documents/images/66fbe90ca7ce685928916146.png?fit=max\&auto=format\&n=sL46GVQByWEibCzI\&q=85\&s=18d236cb2d23387c258c6ab893a541ef)

7. The DataJob runs automatically. BladePipe will automatically run the following DataTasks:
   * **Schema Migration**: The schemas of the source tables will be migrated to the target instance.
   * **Full Data**: All existing data of the source tables will be fully migrated to the target instance.
   * **Incremental**: Ongoing data changes will be continuously synchronized to the target instance (with latency less than a minute).

![image.png](https://mintcdn.com/mirrorship-docs/sL46GVQByWEibCzI/documents/images/808cd64e0def8e3101c59d96.png?fit=max\&auto=format\&n=sL46GVQByWEibCzI\&q=85\&s=a92ce87d1f8a31d12047585d4164aeca)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.