mysql - hibernate communication link failure -



mysql - hibernate communication link failure -

i getting error when connecting mysql database through spring hibernate in ubunto 14.4. working on local environment perfectly.

nov 09, 2014 2:37:27 pm org.hibernate.engine.jdbc.spi.sqlexceptionhelper logexceptions warn: sql error: 0, sqlstate: 08s01 nov 09, 2014 2:37:27 pm org.hibernate.engine.jdbc.spi.sqlexceptionhelper logexceptions error: communications link failure

can help me out solve this?

i had similar problem. spring boot , these configurations in application.properties file resolved problem:

spring.datasource.testwhileidle = true spring.datasource.timebetweenevictionrunsmillis = 3600000 spring.datasource.validationquery = select 1

hope can helpful else.

see here more info: http://blog.netgloo.com/2015/07/09/spring-boot-communications-link-failure-with-mysql-and-hibernate/

mysql spring hibernate jdbc

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -