<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/18012" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2011-02-04T13:39:49-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/18012</id>

		<entry>
		<author><name><![CDATA[kenh83]]></name></author>
		<updated>2011-02-04T13:39:49-04:00</updated>

		<published>2011-02-04T13:39:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95949#p95949</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95949#p95949"/>
		<title type="html"><![CDATA[mysql server gone away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95949#p95949"><![CDATA[
thommey .. <br>The checksqlalive snipplet, can you expand on it so that if it returns 1, it does nothing, if it returns NOTHING it would restart the mysql server.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11350">kenh83</a> — Fri Feb 04, 2011 1:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[thommey]]></name></author>
		<updated>2010-09-17T18:13:48-04:00</updated>

		<published>2010-09-17T18:13:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94437#p94437</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94437#p94437"/>
		<title type="html"><![CDATA[mysql server gone away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94437#p94437"><![CDATA[
woops, sorry, should've been:<div class="codebox"><p>Code: </p><pre><code>bind time - * checksqlalive proc checksqlalive {args} {   mysql::ping $::dbhandle } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9830">thommey</a> — Fri Sep 17, 2010 6:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2010-09-17T10:19:36-04:00</updated>

		<published>2010-09-17T10:19:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94425#p94425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94425#p94425"/>
		<title type="html"><![CDATA[mysql server gone away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94425#p94425"><![CDATA[
cant find the correct args<br><br>Tcl error [checksqlalive]: wrong # args: should be "checksqlalive"<br><br>:S<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Fri Sep 17, 2010 10:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2010-09-16T06:30:42-04:00</updated>

		<published>2010-09-16T06:30:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94406#p94406</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94406#p94406"/>
		<title type="html"><![CDATA[mysql server gone away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94406#p94406"><![CDATA[
ahhh it was easy <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> thanks for great help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Thu Sep 16, 2010 6:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[thommey]]></name></author>
		<updated>2010-09-15T07:56:02-04:00</updated>

		<published>2010-09-15T07:56:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94392#p94392</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94392#p94392"/>
		<title type="html"><![CDATA[mysql server gone away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94392#p94392"><![CDATA[
Let your mysql database handle be in the global $dbhandle variable.<div class="codebox"><p>Code: </p><pre><code>bind time - * checksqlaliveproc checksqlalive {} {  mysql::ping $::dbhandle}</code></pre></div>That will not only check if the connection is alive every minute but also automatically reconnect if it timed out. (Alternatively, do that before every sql statement you execute). See also <a href="http://www.xdobry.de/mysqltcl/mysqltcl.html#16" class="postlink">mysql reference manual</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9830">thommey</a> — Wed Sep 15, 2010 7:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2010-09-15T07:06:17-04:00</updated>

		<published>2010-09-15T07:06:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94391#p94391</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94391#p94391"/>
		<title type="html"><![CDATA[mysql server gone away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94391#p94391"><![CDATA[
hello i make my script but days now i have that problem when i run the proc sometimes not always it says on telnet<br><br>::mysql::sel/db server: MySQL server has gone away<br><br>after .rehash is working of course does anyone now how i can fix it.. or make .rehash if that problem appear?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Wed Sep 15, 2010 7:06 am</p><hr />
]]></content>
	</entry>
	</feed>
