Single use tungsten sync MySQL data to MongoDB

Source: Internet
Author: User
Tags mongodb server mysql command line

[note] The current test environment is just a single server.

The Tungten version of the deployment test is 2.1.2-xxxx;

Requirements:

MySQL Configuration

The tungsten user to use the new password format complete the following steps

Mysql>set session old_passwords=0;

Set binary log format =row;

The main MySQL side server executes the command:

./tools/tungsten-installer--master-slave-a \
--datasource-type=mysql \
--master-host=127.0.0.1 \
--datasource-user=tungsten \
--datasource-password=321 \
--datasource-log-directory=/var/lib/mysql \
--service-name=byruiy \
--home-directory=/root/deploy/mysql \
--cluster-hosts=127.0.0.1 \
--THL-PORT=12500 \
--RMI-PORT=11500 \
--mysql-use-bytes-for-string=false \
--svc-extractor-filters=colnames,pkey \
--svc-parallelization-type=none \
--start-and-report

Execute the statement from the MONGODB server side:
Tools/tungsten-installer--master-slave-a \
--DATASOURCE-TYPE=MONGODB \
--master-host=127.0.0.1 \
--service-name=byruiy \
--HOME-DIRECTORY=/ROOT/DEPLOY/MONGODB \
--cluster-hosts=127.0.0.1 \
--MASTER-THL-PORT=12500 \
--thl-port=12600 \
--rmi-port=11600 \
--skip-validation-check=installermasterslavecheck \
--svc-parallelization-type=none \
--start-and-report

Review the results when the deployment is complete:

MONGO hint Connector

MySQL command line prompt connector

Single use tungsten sync MySQL data to MongoDB

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.