Two Synchronous mysql database open source software configuration otter (c)

Start pre-installed Mysql, ZooKeeper, manager.
1 in the manager interface, add the Node? , As shown below:

Machine Management - "Node management
Two Synchronous mysql database open source software configuration otterfigure, click the Add button to add content refer to the following chart:

?Two Synchronous mysql database open source software configuration otter

? After the addition is completed, added according to the node number, the figure below, 192.168.85.10 corresponding number is 1, then enters machine 10 under the directory node performs echo 1> conf / nid, then start node.
Two Synchronous mysql database open source software configuration otter

?

2 Add Zookeeper:

? Machine Management - "Zookeeper Management

Two Synchronous mysql database open source software configuration otter

?

As shown, clicking the Add button to add the content with reference to the following diagram:

Two Synchronous mysql database open source software configuration otter?

3 Data source configuration:

Configuration Management - "data source configuration, click the Add button

? Data source configuration information to fill two databases need to be synchronized?

Two Synchronous mysql database open source software configuration otter

? Add the content as shown below after the addition was complete, the data source connection click VerifyTwo Synchronous mysql database open source software configuration otter



Table 4 Configuration Data:

Configuration Management - "Data table configuration, click the Add button.

? Data table configuration information table to be synchronized?

Two Synchronous mysql database open source software configuration otter

Add the name of the database, the name of the data table and data source name, and click Verify Connection Table

?Two Synchronous mysql database open source software configuration otter

If you need to synchronize the entire database, the database table to. "*" Instead.

Two Synchronous mysql database open source software configuration otter

?

5 canal configuration:

? Configuration Management - "canal configuration, click the Add button.

?Two Synchronous mysql database open source software configuration otter

canal need to add two, one for each database information from the configuration database, pull bin-log information.

Two Synchronous mysql database open source software configuration otter

?
6 Synchronization Manager:

1) Adding channel

?Two Synchronous mysql database open source software configuration otter

Click the Add button

?Two Synchronous mysql database open source software configuration otter


2) need to configure the pipeline under the channel, click the channel's name, you can add pipeline

Two Synchronous mysql database open source software configuration otter

Two Synchronous mysql database open source software configuration otter


? 3) is added after the completion of pipeline, click on the name of the pipeline, adding mapping relationship mapping between configuration synchronization of original and destination tables.

Two Synchronous mysql database open source software configuration otter

? 4) After configuration, start channel.

Two Synchronous mysql database open source software configuration otter


Note that, if a dual-channel configuration, that is, double room double write, you need to click Use document - "database initialization page.

? While performing initialization in SQL database (need to synchronize data in the database, rather than its own database manager) double room.

?Two Synchronous mysql database open source software configuration otter



5) After starting, double room respective tables respectively inserted, updated, or other operations to verify the synchronization results bis room ~

Guess you like

Origin www.cnblogs.com/shishitongbu/p/11019551.html