dbcp2 连tidb 报错 Communications link failure

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

  • 【TiDB 版本】:5.7.10-TiDB-v3.0.0-beta-27-g6398788
  • 【问题描述】: 问题1. ERROR,2020-03-27 15:21:32,com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet successfully received from the server was 16,890 milliseconds ago. The last packet sent successfully to the server was 16,941 milliseconds ago.
    mysql-connector 版本使用过5.1.46和8.0.19 ,tidb 超时时间为8小时a

这个错误在论坛上有提问过,可以先搜索一下其他帖子的回复看下是否能回答你的问题