lwt 发表于 2023-8-14 14:56:40

fixFileName 参数问题








我对工具进行测试,其中 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


parallel-thds = 15

chanRowCount = 15000

queue-size = 100

checkMode = rows

ratio = 10

checkObject = data


ScheckMod = strict

ScheckOrder = yes

ScheckFixRule = src


log = ./gt-checksum.log

logLevel = info


datafix = table

fixTrxNum = 100

KAiTO 发表于 2023-8-14 15:41:18

用了您的参数我使用时没问题的,配置如下:

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

tables = *.*
checkNoIndexTable = yes
lowerCaseTableNames = no

parallel-thds = 15
chanRowCount = 15000
queue-size = 100
checkMode = rows
ratio = 10
checkObject = data

ScheckMod = strict
ScheckOrder = yes
ScheckFixRule = src

log = ./gt-checksum.log
logLevel = info

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
用了您的参数我使用时没问题的,配置如下:

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的参数也尽量保留,下个版本已经取消了该限制
页: [1]
查看完整版本: fixFileName 参数问题