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

	<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>2007-03-08T13:40:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-03-08T13:40:43-04:00</updated>

		<published>2007-03-08T13:40:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71092#p71092</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71092#p71092"/>
		<title type="html"><![CDATA[MySQL instead of Eggdrops userfile?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71092#p71092"><![CDATA[
Currently, the user database is very much integrated in the core application, making it impossible to switch the non-volatile datastorage without extensive patching of the core.<br>That said, what can currently be done with scripts or modules, is to export a copy of the userfile into xml-data, mysqldump-data, or whatever flavor you desire. Performing this would be quite simple. This however, will not allow you to modify the user database from "outside" your eggdrop (that is, you'd still have to rely on eggdrops user database API in order to alter the database in any way).<br><br>The outlines for a script to export the database would be something like this, I suppose:<div class="codebox"><p>Code: </p><pre><code>proc exportdatabase {stream} { foreach u [userlist -b] {  #hosts, laston, info, xtra, comment, email, url, handle, pass  puts $stream "user: $u"  puts $stream "hosts: [getuser $u hosts]"  puts $stream "laston: [getuser $u laston"  #and so on... } foreach u [userlist +b] {  #botfl, botaddr,hosts, laston, info, xtra, comment, email, url, handle, pass  #same for bots, except they have two additional fields }}</code></pre></div>The above proc will expect an already opened file-stream (from either open or socket), and will probably require some tailoring to suit individual needs<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Mar 08, 2007 1:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2007-03-08T12:54:17-04:00</updated>

		<published>2007-03-08T12:54:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71087#p71087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71087#p71087"/>
		<title type="html"><![CDATA[MySQL instead of Eggdrops userfile?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71087#p71087"><![CDATA[
I this is a really old post but Its exactly what I am looking for - does anyone know of a script / module to make this happen?<br><br>Cheers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Thu Mar 08, 2007 12:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-12-14T13:41:27-04:00</updated>

		<published>2006-12-14T13:41:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68963#p68963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68963#p68963"/>
		<title type="html"><![CDATA[MySQL instead of Eggdrops userfile?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68963#p68963"><![CDATA[
it would definitely make editing the userfile by hand easier, at least for novices (have you tried XML Notepad?)<br><br>but I actually meant another, more important advantage - now that people are used to mySQL db's storing and manipulating all kinds of webpage data, import/export &amp; process eggdrop userfile in XML format would be possible with one-liner tools without any need of special SQL interface in eggdrop<br><br>and yes, it is an antiquated software - or to put it mildly, it isn't exactly what you call the bleeding edge of software development or at least a modern day software (my understanding is that there are some developments in integrating modern era technologies - 1.9 branch? - but given the pace of eggheads, we won't be seeing those released in stable builds anytime soon - if ever)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Dec 14, 2006 1:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-12-14T13:17:40-04:00</updated>

		<published>2006-12-14T13:17:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68962#p68962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68962#p68962"/>
		<title type="html"><![CDATA[MySQL instead of Eggdrops userfile?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68962#p68962"><![CDATA[
Using xml might make it easier to alter the user database by hand. But you'd still have the issue of the userfile only being read once, and written every hour or so (making manually editing the userfile pretty pointless in most cases). In the rare occasion you'd have to repair your database manually, I'd probably think current format would be easier to fix by hand than xml. I'm sure there are a few good reasons to edit the database using various xml-tools, tho I'd considder those extremely rare (during my years since 1.0p and numerous botnets, I can count the number of times I've had to edit a userfile by hand on the fingers of my right hand...)<br><br>And since the data in the userfile always should be considdered old while your eggie is running, there really would'nt be much point in using any external tools to extract data while the eggie is running...<br><br>And as for mysql, I'm not too keen on having to install a mysqld and setting up databases and accounts with proper privileges, just in order to run an eggie.<br><br>Oh, and should I someday find a huge need to be able to modify my userlist from a fancy webpage with all the bells and whistles.. I'd just write a tiny script using sockets to allow my php-script to interface with my eggie under controlled conditions...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Dec 14, 2006 1:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[innu]]></name></author>
		<updated>2006-12-14T11:05:29-04:00</updated>

		<published>2006-12-14T11:05:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68959#p68959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68959#p68959"/>
		<title type="html"><![CDATA[MySQL instead of Eggdrops userfile?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68959#p68959"><![CDATA[
<blockquote class="uncited"><div>using SQL is an overkill for the simple task of reading userfile ONCE (on (re)start) and writing it back ONCE an hour<br><br>another matter is that the proprietary text format eggdrop uses should be replaced with XML schema, thus allowing for easy userfile manipulation by external tools; but eggdrop is an antiquated piece of software anyway and that won't happen</div></blockquote>What do you mean about 'eggdrop is an antiquated piece of software'? Is there something better.<br><br>Even xml is better than usual textfile.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8113">innu</a> — Thu Dec 14, 2006 11:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-12-14T00:53:24-04:00</updated>

		<published>2006-12-14T00:53:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68949#p68949</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68949#p68949"/>
		<title type="html"><![CDATA[MySQL instead of Eggdrops userfile?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68949#p68949"><![CDATA[
using SQL is an overkill for the simple task of reading userfile ONCE (on (re)start) and writing it back ONCE an hour<br><br>another matter is that the proprietary text format eggdrop uses should be replaced with XML schema, thus allowing for easy userfile manipulation by external tools; but eggdrop is an antiquated piece of software anyway and that won't happen<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Dec 14, 2006 12:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[innu]]></name></author>
		<updated>2006-12-13T18:14:57-04:00</updated>

		<published>2006-12-13T18:14:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68947#p68947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68947#p68947"/>
		<title type="html"><![CDATA[MySQL instead of Eggdrops userfile?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68947#p68947"><![CDATA[
<blockquote class="uncited"><div>Im currently making such a modification at the moment using TCL to overwrite the main proc's and to use a mysql module for the mysql crap. I might make it in C as a proper eggdrop module. I will finish it and release it for testing soon.</div></blockquote>Any new information?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8113">innu</a> — Wed Dec 13, 2006 6:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-11-12T20:54:32-04:00</updated>

		<published>2006-11-12T20:54:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67998#p67998</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67998#p67998"/>
		<title type="html"><![CDATA[MySQL instead of Eggdrops userfile?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67998#p67998"><![CDATA[
Im currently making such a modification at the moment using TCL to overwrite the main proc's and to use a mysql module for the mysql crap. I might make it in C as a proper eggdrop module. I will finish it and release it for testing soon.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sun Nov 12, 2006 8:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-11-12T13:07:15-04:00</updated>

		<published>2006-11-12T13:07:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67952#p67952</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67952#p67952"/>
		<title type="html"><![CDATA[MySQL instead of Eggdrops userfile?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67952#p67952"><![CDATA[
Skirmis: Did you release this modification for the public, is it available?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Nov 12, 2006 1:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SkIRmiS]]></name></author>
		<updated>2006-11-12T09:14:06-04:00</updated>

		<published>2006-11-12T09:14:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67937#p67937</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67937#p67937"/>
		<title type="html"><![CDATA[Re: MySQL instead of Eggdrops userfile?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67937#p67937"><![CDATA[
<blockquote class="uncited"><div>Hello,<br>Could anyone tell me if there are some solutions available what would enable  to use mySQL database instead of Eggdrops userfile? I mean that eggdrop gets everything concerding the users from a mySQL database and saves everything there too + the old userfile system would be no longer used.<br>I would appreciate any information concerning this problem <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Hello, I did that.<br><br>Everything is in the Mysql DB:<br> - Users, passwords, extra info<br> - Bots CFG files<br> - Login sessions managment <br> - Permisions managment ( global and local channel )<br> - Bans managment<br> - Various statistics ( chan top10, seen, join/parts etc. )<br> - Gather managment and statistic<br> - Channel managment<br> - New Bot creation and configuration via WEB<br> - Login via WEB<br> - Etc.<br><br>Mysql does'nt slow down the bot. Now are runing about 45 bots that shares the same Mysql DB and about 1000 registered users. Bots does about 1 milinion queries per day and about 10/s. In future in think to do that some information will be in memory and after a while everything is saved into Mysql DB to save CPU power. Now Server CPU is used at 1-3% ( XP Athlon 1900+ ). Sorry for my bad english language.<br><br>SkIRmis<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6903">SkIRmiS</a> — Sun Nov 12, 2006 9:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-11-10T18:38:37-04:00</updated>

		<published>2006-11-10T18:38:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67877#p67877</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67877#p67877"/>
		<title type="html"><![CDATA[MySQL instead of Eggdrops userfile?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67877#p67877"><![CDATA[
<blockquote class="uncited"><div>IMHO mysql is universal, easy access for every other program too besides eggdrop + everything is organized in tables.</div></blockquote>Being that the userfile is a text format, it's not that hard to create parsers for it. Personally, I found learning sql *painful* and thankfully I do not remember a single thing about it anymore (it was a job that required me to learn it ;/ )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Fri Nov 10, 2006 6:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ZEXEL]]></name></author>
		<updated>2006-11-10T14:24:29-04:00</updated>

		<published>2006-11-10T14:24:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67871#p67871</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67871#p67871"/>
		<title type="html"><![CDATA[I think...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67871#p67871"><![CDATA[
I think textfile is better and simple more than SQL database coz it's have minimum risky!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7909">ZEXEL</a> — Fri Nov 10, 2006 2:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-11-10T13:11:34-04:00</updated>

		<published>2006-11-10T13:11:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67870#p67870</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67870#p67870"/>
		<title type="html"><![CDATA[MySQL instead of Eggdrops userfile?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67870#p67870"><![CDATA[
SQL and ODBC might be universal.<br>Even so, many sql-engines have different features and extensions, not always 100% compatible with eachother. And to be honest, do I really want other programs tampering with my user database? Probably not..<br><br>Abit off-topic there I guess, so lets get back on topic:<br>First of all, I would'nt wanna bug admins to install an sql (mysql or any other) server just in order for me to run an eggie.<br>Next there's the immense queries you'd risk ending up with on even an average populated channel.. Whenever any user-permissions are checked, you'd be required to send queries (which would include, but not be limited to, any binding supporting flags, etc)<br><br>You could always manually dump the userlist data into a sql-database every 5minutes or so I guess, assuming that you do not intend to use sql-queries to alter data. Should'nt be too hard to accomplish with either a commandline client (such as mysqlclient), or some extensions such as libmytcl (or something like that, should be able to find a few threads on compiling such with eggies on the forum)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Nov 10, 2006 1:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kmail]]></name></author>
		<updated>2006-11-10T11:03:34-04:00</updated>

		<published>2006-11-10T11:03:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67867#p67867</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67867#p67867"/>
		<title type="html"><![CDATA[MySQL instead of Eggdrops userfile?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67867#p67867"><![CDATA[
IMHO mysql is universal, easy access for every other program too besides eggdrop + everything is organized in tables.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7722">kmail</a> — Fri Nov 10, 2006 11:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-11-09T19:29:19-04:00</updated>

		<published>2006-11-09T19:29:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67859#p67859</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67859#p67859"/>
		<title type="html"><![CDATA[MySQL instead of Eggdrops userfile?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67859#p67859"><![CDATA[
What's so bad about using the existing method (textfile format)?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Thu Nov 09, 2006 7:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
