| View previous topic :: View next topic |
| Author |
Message |
adamast0r Voice
Joined: 20 Apr 2011 Posts: 5
|
Posted: Wed Apr 20, 2011 8:38 pm Post subject: MySQL server has gone away |
|
|
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 |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Thu Apr 21, 2011 12:47 am Post subject: |
|
|
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 |
|
 |
adamast0r Voice
Joined: 20 Apr 2011 Posts: 5
|
Posted: Thu Apr 21, 2011 9:08 am Post subject: |
|
|
Ok, i used:
| Code: | proc mysql_ping { } {
global db
utimer 30 [list mysql_ping]
set r [::mysql::ping $db]
}
mysql_ping |
And work
Thanks  |
|
| Back to top |
|
 |
|