dumpling5.0.2版本不能导出mysql5.6.17版本中的某个单表,-T参数不生效

为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【 TiDB 使用环境】
测试环境

【概述】 场景 + 问题概述
数据迁移,想用dumpling从mysql5.6.17数据库中导出某一个表,导出sql文件,执行命令的时候使用带参数 -T xxx.xxx 指定某个表,提示导出成功,但没有导出数据文件
【备份和数据迁移策略逻辑】

【背景】 做过哪些操作
nohup ./dumpling -u root -p xxxx -P 4000 --host xxxx --filetype sql -t 10 -o /test/0720 -r 200000 --consistency none -F 256MiB
-T xxxx.t1 &
【现象】 业务和数据库现象

【问题】 当前遇到的问题
-T 参数没有生效,单个表的数据sql文件没有生成,日志显示提示导出完成成功
【业务影响】

【TiDB 版本】
5.0.2
【附件】


若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。

3 个赞

需要看前面的 日志

Release version: v5.0.2
Git commit hash: 95099237b7beb80f66efaac9f3e02bd01e68bcc2
Git branch: heads/refs/tags/v5.0.2
Build timestamp: 2021-06-07 08:39:29Z
Go version: go version go1.13 linux/amd64

[2021/07/22 13:46:28.399 +08:00] [INFO] [versions.go:55] [“Welcome to dumpling”] [“Release Version”=v5.0.2] [“Git Commit Hash”=95099237b7beb80f66efaac9f3e02bd01e68bcc2] [“Git Branch”=heads/refs/tags/v5.0.2] [“Build timestamp”=“2021-06-07 08:39:29”] [“Go Version”=“go version go1.13 linux/amd64”]
[2021/07/22 13:46:28.400 +08:00] [INFO] [config.go:600] [“detect server type”] [type=MySQL]
[2021/07/22 13:46:28.400 +08:00] [INFO] [config.go:619] [“detect server version”] [version=5.6.17-log]
[2021/07/22 13:46:28.401 +08:00] [INFO] [dump.go:83] [“begin to run Dump”] [conf="{“s3”:{“endpoint”:"",“region”:"",“storage-class”:"",“sse”:"",“sse-kms-key-id”:"",“acl”:"",“access-key”:"",“secret-access-key”:"",“provider”:"",“force-path-style”:true,“use-accelerate-endpoint”:false},“gcs”:{“endpoint”:"",“storage-class”:"",“predefined-acl”:"",“credentials-file”:""},“AllowCleartextPasswords”:false,“SortByPk”:true,“NoViews”:true,“NoHeader”:false,“NoSchemas”:false,“NoData”:false,“CompleteInsert”:false,“TransactionalConsistency”:true,“EscapeBackslash”:true,“DumpEmptyDatabase”:true,“PosAfterConnect”:false,“CompressType”:0,“Host”:“10.0.0.39”,“Port”:3306,“Threads”:10,“User”:“test”,“Security”:{“CAPath”:"",“CertPath”:"",“KeyPath”:""},“LogLevel”:“info”,“LogFile”:"",“LogFormat”:“text”,“OutputDirPath”:"/opt/0720",“StatusAddr”:":8281",“Snapshot”:"",“Consistency”:“none”,“CsvNullValue”:"\\N",“SQL”:"",“CsvSeparator”:",",“CsvDelimiter”:"\"",“Databases”:[],“Where”:"",“FileType”:“sql”,“ServerInfo”:{“HasTiKV”:false,“ServerType”:1,“ServerVersion”:“5.6.17-log”},“Rows”:200000,“ReadTimeout”:900000000000,“TiDBMemQuotaQuery”:0,“FileSize”:268435456,“StatementSize”:1000000,“SessionParams”:{},“Tables”:null}"]
[2021/07/22 13:46:28.452 +08:00] [INFO] [collector.go:212] [“backup Success summary: total backup ranges: 1, total success: 1, total failed: 0, total take(backup time): 697.776µs, total take(real time): 738.748µs”]
[2021/07/22 13:46:28.452 +08:00] [INFO] [main.go:81] [“dump data successfully, dumpling will exit now”]

不好意思,问题找到了,原因是测试用的表在源端库不存在 :sweat_smile:

好的,找到原因就好:+1:

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。