Quickstart (On-Premise)
BladePipe is an efficient and secure tool for data migration and sync. This page describes how to move data using BladePipe On-Premise in just a few steps.
Install BladePipe
Follow the instructions in Install All-In-One (Binary) to deploy BladePipe.
Add a DataSource
Here we use a self-managed MySQL DataSource as an example. For more details, see Add Self-managed DataSource. For the other supported DataSources, see Supported DataSources.
- Log in to the BladePipe Console.
- In the top navigation bar, click DataSource.
- In the upper right corner of the page, click Add DataSource.
- Choose Self Maintenance for Deployment.
- Select MySQL as the datasource type.
- Fill out the required fields, including address, account and password, etc.
- Click Test Connection to verify the connection.
- Click Add DataSource.
Create a DataJob
Here we take a MySQL-MySQL data synchronization as an example. For more details, see Create General DataJob.
- Log in to the added MySQL database.
- Run the provided script to prepare the test data.
# source database
create database sample_src;
# target database
create database sample_dst;
# prepare tables and data for migration and sync
use sample_src;
CREATE TABLE IF NOT EXISTS `sample_src`.`test_table`(
`id` INT UNSIGNED AUTO_INCREMENT,
`name` VARCHAR(32) NOT NULL,
`age` int not null ,
PRIMARY KEY ( `id` )
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
# prepare test data
insert into `sample_src`.`test_table`(id,name,age) values(1,'hello',18);
insert into `sample_src`.`test_table`(id,name,age) values(2,'world',18);
insert into `sample_src`.`test_table`(id,name,age) values(3,',',18);
insert into `sample_src`.`test_table`(id,name,age) values(4,'cloudcanal',18); - In BladePipe, click DataJob in the top navigation bar.
- In the upper right corner, click Create DataJob.
- Select the added MySQL instance as both the Source and Target, and click Test Connection. Then click Next Step.
- Choose Incremental as the DataJob type, and select Full Data. Then click Next Step.
- Choose the tables you want to sync, then click Next Step.
- Select all columns, then click Next Step.
- Click Create DataJob.
- Go to the DataJob list page to check the progress of the DataJob.
Verify the Data
- Insert, update, and delete data in the source database.
- Check whether the data in the target database is consistent with the data in the source.