The following figure may clearly express this component's role:
Supplementary instruction about the figure:
The process of migration splits into two step, history data migration and realtime data migration.
(1) During history data migration, we use 'select *' syntax to acquire the data, and use 'insert' syntax to migrate the data to the target schema;
(2) During realtime data migration, we use binlog to migrate the data, and we mark the binlog position before migration.
MySQL: 5.1.15 ~ 5.7.x
Sharding-Proxy: 3.x ~ 4.x
Install maven
and run command:
mvn clean package
Copy sharding-scaling-bootstrap\target\sharding-scaling-bootstrap-1.0.0-SNAPSHOT-bin.zip to work directory and unzip.
Download mysql jdbc jar to lib directory.
Config the config.json
file in conf directory.
Start the program.
bin/start.sh