"Kiky" <[EMAIL PROTECTED]> wrote:
> I have a problem with 
> "Error 2013 - Lost connection to MySQL server during query"
> 
> I'm using mysql 3.23.41 under Linux Mandrake, and mysql 4.0.15 under Win XP Pro.
> They turn out to have the same error.
> 
> My problem is:
> I have a Java program which is actually a thread to send emails, so it keeps running 
> all the time.
> When it's time to send emails, it will access MySQL database.
> Based on my wait_timeout in mysql, I think the connection closes after 8 hrs.
> If it's the time to send emails, and mysql has already closed the connection, the 
> first connection attemp will throw an error
> "Error 2013 - Lost connection to MySQL server during query"
> 
> * Is there a way that I can avoid this error? Or to make the connection keeps open 
> all the the time?
> 

You can increase value of wait_timeout variable.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to