GreatSQL社区

搜索

[待回复] fixFileName 参数问题

393 4 2023-8-14 14:56







我对工具进行测试,其中 datafix = table ,根据提示说fixFileName = ./gt-checksum-DataFix.sql 应该不用设置或者删除,但是在执行的时候任然报错。

error when getting key of section "Repair": key "fixFileName" not exists : Failed to get fixFileName parameters


参数如下:


checkNoIndexTable = yes

lowerCaseTableNames = no

[Rules]
parallel-thds = 15

chanRowCount = 15000

queue-size = 100

checkMode = rows

ratio = 10

checkObject = data

[Struct]
ScheckMod = strict

ScheckOrder = yes

ScheckFixRule = src

[Logs]
log = ./gt-checksum.log

logLevel = info

[Repair]
datafix = table

fixTrxNum = 100

全部回复(4)
KAiTO 2023-8-14 15:41:18
用了您的参数我使用时没问题的,配置如下:
[DSNs]
srcDSN = mysql|usr:password@tcp(172.17.0.1:3306)/information_schema?charset=utf8mb4
dstDSN = mysql|usr:password@tcp(172.17.0.2:3306)/information_schema?charset=utf8mb4
[Schema]
tables = *.*
checkNoIndexTable = yes
lowerCaseTableNames = no
[Rules]
parallel-thds = 15
chanRowCount = 15000
queue-size = 100
checkMode = rows
ratio = 10
checkObject = data
[Struct]
ScheckMod = strict
ScheckOrder = yes
ScheckFixRule = src
[Logs]
log = ./gt-checksum.log
logLevel = info
[Repair]
datafix = table
fixTrxNum = 100

-----
使用时校验数据对象
- a.如果datafix=file,则只需要SELECT权限
- b.如果datafix=table,则需要SELECT、INSERT、DELETE权限,如果还需要修复表结构不一致的情况,则需要ALTER权限,记得授予权限


-----
./gt-checksum -f ./gc.conf

直接运行即可
lwt 2023-8-14 15:55:34
KAiTO 发表于 2023-8-14 15:41
用了您的参数我使用时没问题的,配置如下:
[DSNs]
srcDSN = mysql|usr:password@tcp(172.17.0.1:3306)/inf ...

问题您用的是什么操作系统
KAiTO 2023-8-15 09:21:38
lwt 发表于 2023-8-14 15:55
问题您用的是什么操作系统

$ cat /etc/system-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
$ uname -a
Linux gip 3.10.0-1160.el7.x86_64 #1 SMP Tue Aug 18 14:50:17 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux
ywlianghang 2023-9-12 11:07:17
KAiTO 发表于 2023-8-15 09:21
$ cat /etc/system-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
$ uname -a

对,这个报错是在工具运行时会做参数预检查,当选择table时,关于file的参数也尽量保留,下个版本已经取消了该限制
lwt

1

主题

0

博客

3

贡献

新手上路

Rank: 1

积分
5

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-4-27 14:10 , Processed in 0.016356 second(s), 13 queries , Redis On.
快速回复 返回顶部 返回列表