File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed
Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -37,23 +37,15 @@ summary: sync-diff-inspector 是一个用于校验 MySQL/TiDB 中数据一致性
3737
3838# # sync-diff-inspector 所需的数据库权限
3939
40- sync-diff-inspector 需要获取表结构信息 、查询数据,需要的数据库权限如下 :
40+ sync-diff-inspector 需要具备特定的数据库权限以获取表结构信息 、查询数据。你需要在上游数据库和下游数据库中授予以下权限 :
4141
42- - 上游数据库
42+ - ` SELECT` :用于对比数据。
43+ - ` RELOAD` :用于查看表结构。
4344
44- - SELECT(查数据进行对比)
45-
46- - SHOW_DATABASES(查看库名)
47-
48- - RELOAD(查看表结构)
49-
50- - 下游数据库
51-
52- - SELECT(查数据进行对比)
53-
54- - SHOW_DATABASES(查看库名)
55-
56- - RELOAD(查看表结构)
45+ > ** 注意:**
46+ >
47+ > - ** 请勿** 在所有数据库 (` * .* ` ) 上授予 [` SHOW DATABASES` ](/sql-statements/sql-statement-show-databases.md) 权限。否则,sync-diff-inspector 会尝试访问无权限的数据库,导致报错。
48+ > - 对于 MySQL 数据源,请确保系统变量 [` skip_show_database` ](https://dev.mysql.com/doc/refman/8.4/en/server-system-variables.html#sysvar_skip_show_database) 设置为 ` OFF` 。如果该变量设置为 ` ON` ,检查可能会失败。
5749
5850# # 配置文件说明
5951
You can’t perform that action at this time.
0 commit comments