egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MySQL server has gone away

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
adamast0r
Voice


Joined: 20 Apr 2011
Posts: 5

PostPosted: Wed Apr 20, 2011 8:38 pm    Post subject: MySQL server has gone away Reply with quote

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
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Thu Apr 21, 2011 12:47 am    Post subject: Reply with quote

Hi,

have you checked MySQL's manual?
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
adamast0r
Voice


Joined: 20 Apr 2011
Posts: 5

PostPosted: Thu Apr 21, 2011 9:08 am    Post subject: Reply with quote

Ok, i used:

Code:
proc mysql_ping { } {
   global db
   utimer 30 [list mysql_ping]
   set r [::mysql::ping $db]
}
mysql_ping


And work Very Happy
Thanks Razz
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber