Java Mysql超时错误

Java Mysql超时错误,java,jdbc,Java,Jdbc,什么都试过了 connectTimeout=0&socketTimeout=0&autoReconnect=true 将等待超时更改为31536000,交互超时=286399969 但是仍然会继续得到错误 com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 7

什么都试过了

  • connectTimeout=0&socketTimeout=0&autoReconnect=true
  • 将等待超时更改为31536000,交互超时=286399969
但是仍然会继续得到错误

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet successfully received from the server was 70,399,485 milliseconds ago

你应该提供更多的背景资料。连接是否正常工作?还是您总是会遇到此异常?连接正常工作8小时,用于正常的select语句