全量阶段失败报错,关键词“Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server”
场景描述
全量迁移或同步期间DRS任务报错,日志提示信息:service DATAMOVE failed, cause by: Unable to connect to DBMS: url=jdbc:mysql://*** user=root, Caused by: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server。
可能原因
访问源库或目标库时建立连接失败。
解决方案
- 检查源库或目标库运行状态是否正常。
- 检查DRS实例和源库或目标库之间的网络是否能够连通。
- 检查源库或目标库远程访问或者访问白名单是否放通DRS的实例IP。