【 TiDB 使用环境】生产环境 /测试/ Poc
【 TiDB 版本】v5.0.6
【复现路径】
执行后报错:
在本机IP01为master,在本机IP01服务器执行命令,从IP01到IP02的20199端口的telnet正常;
tidb@dmm-001:~/dm/source$ tiup dmctl --master-addr IP01:8261 operate-source create dmw-089-32-50-2-16-source.yaml
//dmw-089-32-50-2-16-source.yaml 配置文件里面配置的IP02的mysql数据库连接信息,端口为20199
Found dmctl newer version:
The latest version: v7.0.0
Local installed version: v2.0.3
Update current component: tiup update dmctl
Update all components: tiup update --all
Starting component dmctl
: /home/tidb/.tiup/components/dmctl/v2.0.3/dmctl/dmctl --master-addr IP01:8261 operate-source create dmw-089-32-50-2-16-source.yaml
{
“result”: false,
“msg”: “[code=10001:class=database:scope=not-set:level=high], Message: database driver error, RawCause: dial tcp IP02:20199: i/o timeout, Workaround: Please check the database connection and the database config in configuration file.”,
“sources”: [
]
}
mysql连接正常:
tidb@dmm-001:~/dm/source$ mysql -test -hIP02 -P20199 -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3292709
Server version: 5.6.33-log MySQL Community Server (GPL)
telnet也正常
tidb@dmm-001:~/dm/source$ telnet IP02 20199
Trying IP02…
Connected to IP02.
Escape character is ‘^]’.
N
【遇到的问题:问题现象及影响】
“msg”: “[code=10001:class=database:scope=not-set:level=high], Message: database driver error, RawCause: dial tcp IP02:20199: i/o timeout, Workaround: Please check the database connection and the database config in configuration file.”,
【资源配置】
【附件:截图/日志/监控】