MySQL server has gone away

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
inselfan
Posts: 42
Joined: Fri Nov 10, 2006 11:33 am

MySQL server has gone away

Post by inselfan » Mon Jun 23, 2008 12:17 pm

Holá SQL-Pro's,

After NOT working with my mySQL-DB (and my Software) for a few hours, I get the messsage above. My question now is: How to "tell" mySQL or my aplication, NOT to let the server go away :-)

Can not find a solution in the docs. I know, it is something with "wait_timeout" but no Idea where/how.

Thanks for replies

Horst

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Mon Jun 23, 2008 1:10 pm

Hi Horst,

You have to set a MySQL environment variable for that. This is not Rev but MySQL. I have to do this only once in a while, so I'm not sure which variable it is, it should be something like WAITTIMEOUT.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

inselfan
Posts: 42
Joined: Fri Nov 10, 2006 11:33 am

Post by inselfan » Tue Jun 24, 2008 8:17 am

Holá Mark,

Yes, I also think, the sollution is "wait_timeout". But how/where to handle that?

best regards

Horst

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue Jun 24, 2008 9:53 am

Horst,

This is from a libary of mine:

Code: Select all

on sqlSetWaitTimeout theID,theInterval
  revExecuteSQL theID,"SET wait_timeout=" & theInterval & ";"
  return the result
end sqlSetWaitTimeout
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

inselfan
Posts: 42
Joined: Fri Nov 10, 2006 11:33 am

Post by inselfan » Wed Jun 25, 2008 8:18 am

Holá Mark,

Thanks a lot for that. I'll try it and will see what happends.

All the best

Horst

Post Reply