I have an application designed in Hibernate, its Sleep time gets resets after it reaches 600 in MySql Administrator. Which parameter determines the time for sleep in the MySQL? I have attached a screenshot here.
Asked
Active
Viewed 155 times
0

George Viju
- 413
- 1
- 5
- 23
-
http://bugs.mysql.com/bug.php?id=25461 check this – Shoaib Chikate Oct 30 '13 at 10:41
-
@ Shoaib Chikate Thank you for your answer. Could it be possible to control by using hibernate.cfg.xml? – George Viju Oct 30 '13 at 10:43
-
Are you getting connection closed after some period of time?? – Shoaib Chikate Oct 30 '13 at 10:47
-
yes that sleep connection gets closed after 600 seconds – George Viju Oct 30 '13 at 10:49
-
Dont forget to accept answer if you find it appropriate....Thanks :) – Shoaib Chikate Oct 30 '13 at 10:52
-
sure Shoaib Chikate.Thanks :) – George Viju Oct 30 '13 at 10:53
-
hi Shoaib Chikate i am getting the following error : Unknown database 'Test;autoReconnect=true' – George Viju Oct 30 '13 at 10:58
1 Answers
0
Check this out:
<property name="connection.url">jdbc:mysql://0.0.0.0/yourDBName;autoReconnect-true</property>
Link for above answer is here

Community
- 1
- 1

Shoaib Chikate
- 8,665
- 12
- 47
- 70