logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
MySQL or SQLight on Linux Server?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
Gerrath



Joined: 11 Oct 2005
Posts: 1

PostPosted: Tue Oct 11, 2005 18:03    Post subject: MySQL or SQLight on Linux Server? Reply with quote

I'm in the process of setting up a persistent world and need to incorporate a database. The database will be used quite a bit as I plan to have the PCs actions on a regular basis effect their future.

I also have planned to, with PHP, access the dbase and display real-time data on a webpage/forum for the players to see.

Is this too big of a project for SQLight? should I use MySQL instead? I'm familiar with MySQL but I'm concerned since it is not as fast as SQLight. Is the speed difference very noticeable in game? Obviously the last question is depended on how much the dbase is used but assume it is used but I'm just trying to get a feel of the speed differences in real-time play.
Regards,
Gerrath
Back to top
View user's profile Send private message
Acrodania



Joined: 02 Jan 2005
Posts: 208

PostPosted: Tue Oct 11, 2005 20:46    Post subject: Reply with quote

If you use SQLite you will have to add support for version 3 (which NWNX uses) to PHP yourself. PHP 5 only has support for version 2.

Personally I prefer MySQL for the simple reason is you can connect to it via remote utilities, use webservers that aren't housed on the same server, etc. SQLite cannot be accessed remotely. I find it much easier to administrate.

Hopefully someone will write a server process some day that allows SQLite to be accessed from another location but until then its use is limited.

There is a difference in speed but as long as you aren't being silly about things it shouldn't be noticeable Smile
Back to top
View user's profile Send private message
Parsec



Joined: 06 Jan 2005
Posts: 7

PostPosted: Wed Oct 12, 2005 2:09    Post subject: Reply with quote

Not being very familiar with SQLite, I would still suggest using MySql also for similar reasons.

The world I host is currently done this way with nwn and apache being on different servers and the player database is updated every 60 seconds for web activities.

I see little problem with using MySQL. I think you will find most of the slowdown will occur within nwn itself executing all your scripts rather then the minimal difference in time it takes to return a query via either MySQL or SQLite.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Thu Oct 13, 2005 9:08    Post subject: Reply with quote

I did not know there was a SQLite version of the ODBC plugin for Linux ? AFAIK, Linux only supports MySQL.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Tenkawa



Joined: 25 Aug 2005
Posts: 15

PostPosted: Thu Oct 13, 2005 18:18    Post subject: Reply with quote

Papillon wrote:
I did not know there was a SQLite version of the ODBC plugin for Linux ? AFAIK, Linux only supports MySQL.


There is not an official one however I did port the non-plugin version of linux nwnx2 to use sqlite3 instead of mysql and it works great.

Tenkawa
Back to top
View user's profile Send private message
katowulf



Joined: 03 Jan 2006
Posts: 3

PostPosted: Sun Jan 22, 2006 19:56    Post subject: functional nwnx on linux Reply with quote

Obviously nwnx is fairly pointless for persistent worlds without a db.

Is anyone using NWNX with SQLite or MySQL on linux?

I saw posts that claim to have "ported" this or that sql into linux. Can someone explain how they ported these things, since there is no linux ODBC?
Back to top
View user's profile Send private message Visit poster's website
Acrodania



Joined: 02 Jan 2005
Posts: 208

PostPosted: Sun Jan 22, 2006 21:36    Post subject: Re: functional nwnx on linux Reply with quote

katowulf wrote:
Obviously nwnx is fairly pointless for persistent worlds without a db.

Is anyone using NWNX with SQLite or MySQL on linux?

I saw posts that claim to have "ported" this or that sql into linux. Can someone explain how they ported these things, since there is no linux ODBC?

There is OBDC support in Linux.

NWNX/MySQL works fine on Linux via either ODBC or Direct Connection. Those drivers ARE available.

There are also ODBC drivers for Linux for Oracle, Postegre and Firebird. Various individuals have said that these drivers work for NWNX also.

Its just the SQLite that is not supported until someone writes an official driver for it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group