Recommended database

Posted by Pokkie on Thu 29 Oct 2009 03:45 PM — 4 posts, 22,191 views.

#0
I wish to start writing a database for my character. At the first it will just contain equipment but I might want to expand upon it later and have it contain other stuffs as well.

My question is, given my requirements which database implementation, MySQL vs SQLite would you recommend I use.



USA #1
Which are you familiar with? Do you have a MySql database server somewhere?

If you're starting from scratch with nothing, then Sqlite is easier since it needs no other software than the database file.

If you have MySql, and are familiar with the quirks in its implementation of SQL, then use that.
#2
I am not a DBA but I do work databases and SQL on a daily basis. So, I would prefer to work with MySQL. Just wasnt sure if it would be complete overkill for what I am trying to do.
Australia Forum Administrator #3
MySQL is fine - I did some plugins that demonstrate using that. However MySQL is not zero-administration like SQLite3 is. In other words, you need the MySQL server to be running somewhere.

For a single process (ie. a MUD world) that just wants to save stuff (like mobs) to a database, probably SQLite3 is the easiest to use.

http://mushclient.com/sql

However if you want to use MySQL (and there is no major objection at all) then see this forum post:

http://www.gammon.com.au/forum/?id=5983

You would need to download and install MySQL, make sure it is running (eg. as a service on Windows, or possibly on a separate PC somewhere) and then interface with it as described in that forum post (this requires the mysql.dll to be installed to provide the functionality).

SQLite3 however is actually coded into recent versions of MUSHclient, and is available without any installation, configuration, or extra DLLs.