[英]how to enable CDC in google cloud sql server for AWS DMS replication?
I am trying to migrate data from GCP cloud sql server to AWS aurora MySQL using DMS CDC, for this I need to enable CDC on DMS source database which cloud SQL. As per the AWS documentation I need to enable CDC by executing "sp_cdc_enable_db" SP and for this I need sysadmin access but google cloud doesn't support sysadmin access.我正在尝试使用 DMS CDC 将数据从 GCP 云 sql 服务器迁移到 AWS aurora MySQL,为此我需要在云 SQL 的 DMS 源数据库上启用 CDC。根据 AWS 文档,我需要通过执行“sp_cdc_enable_db”SP 来启用 CDC为此,我需要系统管理员访问权限,但谷歌云不支持系统管理员访问权限。 So, in this scenario how to enable CDC?
那么,这种场景下如何开启CDC呢?
As you know, Cloud SQL doesn't support sysadmin access, and CDC feature too.如您所知,云 SQL 不支持系统管理员访问权限,也不支持CDC 功能。
So you have to use different method to the migration process.所以你必须对迁移过程使用不同的方法。
If you really want to use CDC, I recommend to use middle-man replication between GCP cloud sql and AWS aurora mysql.如果真的要用CDC,我推荐在GCP云sql和AWS aurora mysql之间使用中间人复制。
Just replicate your cloud sql to on-premise or somewhere else where you can execute cdc.只需将您的云 sql 复制到本地或您可以执行 cdc 的其他地方。
And then migrate the SQL server replication to AWS aurora using AWS DMS, But aurora will not be synced with source DB in cloud sql.然后使用 AWS DMS 将 SQL 服务器复制迁移到 AWS aurora,但是 aurora 不会与云 sql 中的源数据库同步。
Or if you just want to both DBs are in sync, Have you tried steps AWS document described in here ?或者,如果您只想让两个数据库同步,您是否尝试过此处描述的 AWS 文档中的步骤?
I think "Migrating existing data and replicating ongoing changes" section worked exactly you want.我认为“迁移现有数据并复制正在进行的更改”部分完全符合您的要求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.