SA-MP Forums Archive
MySQL vs File data saving & loading - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL vs File data saving & loading (/showthread.php?tid=441144)



MySQL vs File data saving & loading - reckst4r - 01.06.2013

Hi. I'm wondering what the pro's and con's of mysql & file data saving & loading. Of course it's easier to manage data in MySQL, but I'm still wondering what would be best. I'd appreciate it if you would write some pro's and con's. Thanks


Re: MySQL vs File data saving & loading - Vince - 01.06.2013

We've had countless discussions about this subject and in the end it boils down to this: what data are you going to store and what are you going to do with it?


Re: MySQL vs File data saving & loading - reckst4r - 01.06.2013

I'm simply going to use it to store, load & save data for things like accounts, gates, factions, etc.


Re: MySQL vs File data saving & loading - Smokkr - 01.06.2013

MySQL is better than File Data.In MySQL you can do a lot of things like to check your account stats on your website.


Re: MySQL vs File data saving & loading - reckst4r - 01.06.2013

You can do that with files aswell.


Re: MySQL vs File data saving & loading - Smokkr - 01.06.2013

Quote:
Originally Posted by reckst4r
Посмотреть сообщение
You can do that with files aswell.
But it's much easier with MySQL.It's little bit hard to script but with more practice you will learn it


Re: MySQL vs File data saving & loading - reckst4r - 01.06.2013

It's not hard.
And this is not a discussion about how easy it is to print stats on websites, this is about loading & saving from PAWN & samp servers.


Re: MySQL vs File data saving & loading - Kreatyve - 01.06.2013

Files are a good way for logging data and simple loading and saving systems for SA-MP
SQLite seems to be the best for simple loading and saving scripts for SA-MP.
MySQL is slower but is widely used by any program including web browsers.


Re: MySQL vs File data saving & loading - reckst4r - 01.06.2013

Alright. Thanks


Re: MySQL vs File data saving & loading - Knappen - 01.06.2013

I would recommend using MySQL if you are planning to load a lot of data, as it's simple, as well as reliable. I haven't worked that much with files, so I can't say that much about it, but MySQL is easy to work with.