News:

Come Chat with us live! Learn how HERE!

Main Menu

Replace admin.dat with a MySQL table

Started by Paradox, April 28, 2008, 07:52:27 PM

Paradox

There are many reasons why this would be a good idea, and i actually have some people working on it. What i propose is replacing admin.dat with a mysql table. Trem would reference into said table.

This would allow for many things, such as an online ban database viewer, online admin viewer, and easy searching.

Ideally, it would be an alternate solution, for those ops who dont know how to run MySQL, they could opt out and still use admin.dat.

Any feedback?

∧OMG ENTROPY∧

Rocinante

Go with SQLite instead.  Same benefits of a RDB, but without the overhead of another daemon.
}MG{Mercenaries Guild
"On my ship, the Rocinante, wheeling through the galaxies, headed for the heart of Cygnus, headlong into mystery." -- Rush, "Cygnus X-1"

Paradox

Many of us are running a MySQL server on our server allready, and so SQLite would be yet another thing to use.

∧OMG ENTROPY∧

kevlarman

Quote from: Paradox on April 28, 2008, 11:37:24 PM
Many of us are running a MySQL server on our server allready, and so SQLite would be yet another thing to use.
mysqld doesn't exactly play well with tremded, i would avoid running it on any servers that are used to host trem servers.
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Paradox

You could always remote it out, that would be the beauty of such a system.

∧OMG ENTROPY∧

kevlarman

Quote from: Paradox on April 29, 2008, 07:40:17 PM
You could always remote it out, that would be the beauty of such a system.
that would make the lag much much worse.
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

kangounator

I'd use SQLite for that, it is really light to use and as Rocinante said, you don't have to run a SQL server, only tremulous' binary. (that again some more syscalls :x )
Quote from: CitRoNMuuuuuuuuuh ]={:}

Memorex >.<

i already coded something for that, but i didnt replace the admin.dat by sql, i just update a sql table with the admin.dat content

http://www.amsterdam-unlimited.net/page4/page5/page6/page6.html

it's of course still in developpement since i only worked 20min on it, so be lenient please, there is no filter yet, no design, trem color sheme isnt supported yet etc.. :)

Paradox

Thats actually a good solution, while imperfect.
If at all possible, could i see the code?

∧OMG ENTROPY∧

Memorex >.<

i sent you the code on your gmail address

Paradox


∧OMG ENTROPY∧

Le Compilateur

It would take a bit of coding but yeah, good idea.
I'm a developer! If you'd like to contribute to the Equilibrium QVM project or download the latest version, please visit this thread.

QVMs now compile under Leopard; get the patch here. Requires SVN r1053 or later.

daenyth

Not a bad idea, but I'd also say to either go with sqlite or have a system where the admin can connect it to any *sql db
Quote from: Bullislander05
It's like trying to take apple seeds out of a zebra to plant a giraffe tree.