dm启动迁移任务报Error 3167: The 'INFORMATION_SCHEMA.GLOBAL_STATUS' feature is disabled;

【 TiDB 使用环境`】测试环境
【 TiDB 版本】V5.4.0
【遇到的问题】
使用DM启动迁移任务,报错

[root@instance-8q00utxd dm]# tiup dmctl --master-addr 192.168.16.5:8261 query-status test
tiup is checking updates for component dmctl …
Starting component dmctl: /root/.tiup/components/dmctl/v5.4.0/dmctl/dmctl /root/.tiup/components/dmctl/v5.4.0/dmctl/dmctl --master-addr 192.168.16.5:8261 query-status test
{
“result”: true,
“msg”: “”,
“sources”: [
{
“result”: true,
“msg”: “”,
“sourceStatus”: {
“source”: “mysql-01”,
“worker”: “dm-192.168.16.5-8262”,
“result”: null,
“relayStatus”: null
},
“subTaskStatus”: [
{
“name”: “test”,
“stage”: “Paused”,
“unit”: “Dump”,
“result”: {
“isCanceled”: false,
“errors”: [
{
“ErrCode”: 32001,
“ErrClass”: “dump-unit”,
“ErrScope”: “internal”,
“ErrLevel”: “high”,
“Message”: "mydumper/dumpling runs with error, with output (may empty): ",
“RawCause”: “sql: SELECT VARIABLE_NAME,VARIABLE_VALUE FROM information_schema.GLOBAL_STATUS LIMIT 1: Error 3167: The ‘INFORMATION_SCHEMA.GLOBAL_STATUS’ feature is disabled; see the documentation for ‘show_compatibility_56’”,
“Workaround”: “”
}
],
“detail”: null
},
“unresolvedDDLLockID”: “”,
“dump”: {
“totalTables”: “181”,
“completedTables”: 128,
“finishedBytes”: 5129972,
“finishedRows”: 55157,
“estimateTotalRows”: 1332347
}
}
]
}
]
}
根据提示已修改源端数据库show_compatibility_56兼容性问题,如下为源库信息

源端数据库版本:mysql> status;

mysql Ver 14.14 Distrib 5.7.25, for Linux (x86_64) using EditLine wrapper

DM 在做全量数据导出时需要向上游数据库执行
SELECT VARIABLE_NAME,VARIABLE_VALUE FROM information_schema.GLOBAL_STATUS LIMIT

来查询一些信息方便导出工作,搜了一下 mysql 5.7x 想要使用这个语句需要这样打开 mysql 5.6 的兼容模式 set @@global.show_compatibility_56=ON;

或者更改 mysql 的配置文件,参考这里

这个需要重启tidb层全部实例吗?

这个是上游 mysql 报的错,不需要重启 tidb 哦

该主题在最后一个回复创建后60天后自动关闭。不再允许新的回复。