[注意],当前的测试环境仅仅是一台服务器.
部署测试的tungten版本是2.1.2-xxxx;
Requirements:
mysql配置
To change the Tungsten user to use the new password format complete the following steps
mysql>set session old_passwords=0;
设置二进制日志格式=row;
主mysql端服务器执行命令:
./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
从mongodb服务器端执行语句:
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
部署完成后查看效果:
mongo提示符端
mysql命令行提示符端