dm迁移开源版本PolarDB-X报错Message: fail to initialize checker: database driver error, RawCause: sql: expected 3 destination arguments in Scan, not 2

【TiDB 使用环境】测试
【TiDB 版本】V8.5.1
【操作系统】
【部署方式】本地部署
【集群数据量】
【集群节点数】
【问题复现路径】做过哪些操作出现的问题
dm创建好数据源后,检查数据源报错


【遇到的问题:问题现象及影响】
【资源配置】进入到 TiDB Dashboard -集群信息 (Cluster Info) -主机(Hosts) 截图此页面

【复制黏贴 ERROR 报错的日志】
{
“result”: false,
“msg”: “[code=10001:class=dm-master:scope=upstream:level=high], Message: fail to initialize checker: database driver error, RawCause: sql: expected 3 destination arguments in Scan, not 2, Workaround: Please check the database connection and the database config in configuration file.”
}
【其他附件:截图/日志/监控】



两个数据库都可以连上

database driver error

明显就不支持咯

数据库不支持吗?

fail to initialize checker: database driver error, RawCause: sql: expected 3 destination arguments in Scan, not 2, Workaround: Please check the database connection and the database config in configuration file.

:thinking: 你在 PolarDB-X,手动执行 SHOW MASTER STATUS 返回啥。

这是 DM(Data Migration)工具 在连接或校验某个数据库时出现的错误,具体来说是 Go 的 database/sql 驱动在执行 Scan 操作时,期望接收 3 个参数,但实际只传了 2 个参数。

1 个赞

是的,但是不确定他执行的具体 sql 是哪个,应该是兼容性问题了。