Database Connection to MySQL times out even after setting c3p0.testConnectionOnCheckout=true

后端 未结 2 443
孤城傲影
孤城傲影 2021-01-19 02:08

I have an app that uses hibernate (v3.6.4) , with connection pooling provided by C3P0 (v0.9.1.2) .

The problem is I get a JDBC communications link failure if I make

2条回答
  •  时光取名叫无心
    2021-01-19 03:01

    Add the below property in your hibernate config file. I hope it will work.

    
      org.hibernate.connection.C3P0ConnectionProvider
    
    

提交回复
热议问题