<?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/17317" />

	<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>2009-11-23T00:05:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DarkRaptor]]></name></author>
		<updated>2009-11-23T00:05:25-04:00</updated>

		<published>2009-11-23T00:05:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91012#p91012</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91012#p91012"/>
		<title type="html"><![CDATA[mysql connect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91012#p91012"><![CDATA[
Hi Fire-Fox,<br><br>I'm using this in my script.<br><div class="codebox"><p>Code: </p><pre><code>proc name { all arguments } {   mysqlconnect   conditions   &amp;   commands   mysqlclose}</code></pre></div>I'm sure to have a "fresh" connection to the mysql server.<br><br>Note: I put "mysqlclose" at each location that the script ends.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7635">DarkRaptor</a> — Mon Nov 23, 2009 12:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2009-11-16T05:04:15-04:00</updated>

		<published>2009-11-16T05:04:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90934#p90934</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90934#p90934"/>
		<title type="html"><![CDATA[mysql connect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90934#p90934"><![CDATA[
Hey <br><br>How do i get the bot to keep connection to the mysql database, without replying "The connection to the mysql server has been lost." almost all the time?<br><div class="codebox"><p>Code: </p><pre><code>##################### Mysql path #####################if {![info exists db_handle] } {set db_handle [mysqlconnect -host xxxx.xxxx.xxxxx -port xxxx -user xxx -password xxxxx -db xxxxxx]}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>     if {[mysqlping $db_handle] != 1} {          putserv "PRIVMSG $channel :The connection to the mysql server has been lost."         return 0     }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Mon Nov 16, 2009 5:04 am</p><hr />
]]></content>
	</entry>
	</feed>
