Afficher un message
Vieux 11/04/2006, 21h04   #2
Bill Karwin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: MYSQL 5.0 Connection Time Out

cotasson@gmail.com wrote:
> As far as I know, this is due to some kind of connection timeout that
> did not happen before version 5 of MySQL.


I've run into this before, and the best solution I found after a lot of
google searches is that your Java app should catch exceptions and
reconnect to MySQL as needed. That never seemed very satisfying. :-(

Does the following web page ? It says you can specify a maxWait
parameter with a value of -1 to disable timeouts. I have not used this,
I just found the page now.

http://www.johntopley.com/kb/java/0038.html

Regards,
Bill K.
  Réponse avec citation
 
Page generated in 0,05268 seconds with 9 queries