We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
您好,开发者: 1,请问跨机房传输,把A机房的mysql的A1库(源库)传输到B机房的mysql的A1库(目标库),等于是mysql到mysql(版本8)。 2,目前我用deployer+adapter的形式进行同步(1.1.7),他俩是部署在B机房的同一台MySQL实例上(mysql+deployer+adapter)。 3,deployer服务配置更改的有:canal.properties文件内destinations定义了my_db,并且把my_db目录下的文件instance.properties修改了源数据库连接,改了有canal.instance.master.address,canal.instance.dbUsername,canal.instance.dbPassword,canal.instance.filter.regex=my_db\..* 4,adapter服务配置更改的有:bootstrap.yml(注释了所有因为我不用admin),application.yml(改了srcDataSources和canalAdapters) 5,然后准备启动这两个服务。 6,请问下如何保证他是库到库呢,不指定表配置yml文件,只是库到库,谢谢!
The text was updated successfully, but these errors were encountered:
只需要在 adapter的 conf/rdb 目录下的yml中 dbMapping 映射配置同步所有表即可 dataSourceKey: defaultDS destination: example outerAdapterKey: mysql1 concurrent: true dbMapping: database: 源库名 table: .* # 同步所有表 targetTable: 目标库名 targetPk: id: id
dataSourceKey: defaultDS destination: example outerAdapterKey: mysql1 concurrent: true dbMapping: database: 源库名 table: .* # 同步所有表 targetTable: 目标库名 targetPk: id: id
Sorry, something went wrong.
请教您一下
为什么选择 canal 同步,而不是用主从? 是因为 A 和 B 不能直接互通对吧,借助 canal 中转
No branches or pull requests
您好,开发者:
1,请问跨机房传输,把A机房的mysql的A1库(源库)传输到B机房的mysql的A1库(目标库),等于是mysql到mysql(版本8)。
2,目前我用deployer+adapter的形式进行同步(1.1.7),他俩是部署在B机房的同一台MySQL实例上(mysql+deployer+adapter)。
3,deployer服务配置更改的有:canal.properties文件内destinations定义了my_db,并且把my_db目录下的文件instance.properties修改了源数据库连接,改了有canal.instance.master.address,canal.instance.dbUsername,canal.instance.dbPassword,canal.instance.filter.regex=my_db\..*
4,adapter服务配置更改的有:bootstrap.yml(注释了所有因为我不用admin),application.yml(改了srcDataSources和canalAdapters)
5,然后准备启动这两个服务。
6,请问下如何保证他是库到库呢,不指定表配置yml文件,只是库到库,谢谢!
The text was updated successfully, but these errors were encountered: