본문 바로가기
Programming/SQL

Communications link failure due to underlying exception

by Chan_찬 2013. 7. 5.
728x90

com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

풀의 커넥션이 타임아웃 되서 그렇다.


- 다음중 하나를 설정하면  해결된다.


1. 커넥션 설정부분에 autoReconnect=true를 붙힘

2.  <property name="validationQuery" value="select 1"/>

3. mysql의 대기시간을 늘림


[출처] com.mysql.jdbc.CommunicationsExceptio... |작성자 타쿠미



 


728x90
728x90

'Programming > SQL' 카테고리의 다른 글

mysql 사용자/권한 관리  (0) 2016.01.13
mysql 입력시 중복 데이터  (0) 2014.07.17
[오라클] 트리거 TRIGGER  (1) 2012.02.03
Toad에서 DB Export 하기  (0) 2011.12.23
TOAD script 추출하기(Database Script, Schema Script)  (0) 2011.12.08
Buy me a coffeeBuy me a coffee

댓글