`

mycat com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications li

 
阅读更多

mcat insert数据时总是报下面的错,后来发现是mycat连接超时销毁时间和Druid数据源设置问题,后来把Druid的时间调小于mycat 的数据源才不报错。

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

The last packet successfully received from the server was 30,738 milliseconds ago.  The last packet sent successfully to the server was 1 milliseconds ago.

The last packet successfully received from the server was 30,738 milliseconds ago.  The last packet sent successfully to the server was 1 milliseconds ago.
at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:245)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics