This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

MySQL server has gone away

Help for those learning Tcl or writing their own scripts.
Post Reply
a
adamast0r
Voice
Posts: 5
Joined: Wed Apr 20, 2011 8:35 pm

MySQL server has gone away

Post by adamast0r »

hey guys,
i have one problem in my script.. is as follows ..
after some time gives me this error:

"Tcl error [my_proc]: ::mysql::sel/db server: MySQL server has gone away"

any idea?

thks
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Hi,

have you checked MySQL's manual?
Once the game is over, the king and the pawn go back in the same box.
a
adamast0r
Voice
Posts: 5
Joined: Wed Apr 20, 2011 8:35 pm

Post by adamast0r »

Ok, i used:

Code: Select all

proc mysql_ping { } {
	global db
	utimer 30 [list mysql_ping]
	set r [::mysql::ping $db]
}
mysql_ping
And work :D
Thanks :P
Post Reply