跳到主要内容 跳到补充内容

所需的权限

在 连接设置中指定的用户必须具有以下权限:

满负载任务

具有指定源表的 SELECT 权限的 ReplicationAdmin 角色。

CDC 任务

具有 REPLICATION CLIENT 和 REPLICATION SLAVE 权限的 ReplicationAdmin 角色。

信息注释从 Microsoft Azure Database for MySQL 8.0 捕获更改时,用户还必须具有标准身份验证。

检查未结的 XA 交易

初始化任务时,Data Movement gateway 检查是否有任何打开的 XA 事务(使用两阶段提交协议的事务)。要允许执行此查询,需要授予以下权限:

grant XA_RECOVER_ADMIN on *.* to 'userName'@'%';

其中 userNameconnector 设置中指定的用户。

如果未授予此权限,运行任务时将显示以下错误:

Failed to check for open XA transactions. Verify that the user specified in the endpoint settings has the XA_RECOVER_ADMIN permission. Capturing changes while there are open XA transactions might lead to loss of data. If there are no XA transactions in this database, add the internal parameter IgnoreOpenXaTransactionsCheck to skip the XA transactions check.

本页面有帮助吗?

如果您发现此页面或其内容有任何问题 – 打字错误、遗漏步骤或技术错误 – 请告诉我们如何改进!