From a1426f694e900404734282fdfb47c90f5f594292 Mon Sep 17 00:00:00 2001 From: Liuxiaozhen12 <82579298+Liuxiaozhen12@users.noreply.github.com> Date: Mon, 2 Aug 2021 11:57:28 +0800 Subject: [PATCH 1/2] ticdc: add mysql sink user privilege --- ticdc/troubleshoot-ticdc.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ticdc/troubleshoot-ticdc.md b/ticdc/troubleshoot-ticdc.md index 351da4a9223cf..7193c79174748 100644 --- a/ticdc/troubleshoot-ticdc.md +++ b/ticdc/troubleshoot-ticdc.md @@ -398,3 +398,19 @@ If you want to skip this DDL statement that goes wrong, set the start-ts of the cdc cli changefeed update -c test-cf --pd=http://10.0.10.25:2379 --start-ts 415241823337054210 cdc cli changefeed resume -c test-cf --pd=http://10.0.10.25:2379 ``` + +## When the Sink of replicating data to the downstreams is TiDB or MySQL, what permissions do users of downstream databases need? + +When Sink is TiDB or MySQL, the users of downstream databases need the following permissions: + +- `Select` +- `Index` +- `Insert` +- `Update` +- `Delete` +- `Create` +- `Drop` +- `Alter` +- `Create View` + +If you need to replicate `recover table` to the downstream TiDB, `Super` permission is required. \ No newline at end of file From 04246b6f6c5bf1901d62db7e2c1307c01c339060 Mon Sep 17 00:00:00 2001 From: Liuxiaozhen12 <82579298+Liuxiaozhen12@users.noreply.github.com> Date: Mon, 2 Aug 2021 14:20:46 +0800 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> --- ticdc/troubleshoot-ticdc.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ticdc/troubleshoot-ticdc.md b/ticdc/troubleshoot-ticdc.md index 7193c79174748..40921ce072a4e 100644 --- a/ticdc/troubleshoot-ticdc.md +++ b/ticdc/troubleshoot-ticdc.md @@ -399,9 +399,9 @@ cdc cli changefeed update -c test-cf --pd=http://10.0.10.25:2379 --start-ts 4152 cdc cli changefeed resume -c test-cf --pd=http://10.0.10.25:2379 ``` -## When the Sink of replicating data to the downstreams is TiDB or MySQL, what permissions do users of downstream databases need? +## When the sink of the replication downstream is TiDB or MySQL, what permissions do users of the downstream database need? -When Sink is TiDB or MySQL, the users of downstream databases need the following permissions: +When the sink is TiDB or MySQL, the users of the downstream database need the following permissions: - `Select` - `Index` @@ -413,4 +413,4 @@ When Sink is TiDB or MySQL, the users of downstream databases need the following - `Alter` - `Create View` -If you need to replicate `recover table` to the downstream TiDB, `Super` permission is required. \ No newline at end of file +If you need to replicate `recover table` to the downstream TiDB, the `Super` permission is required.