Quote:
Originally Posted by Swiftz
I'm planning on making a mysql gm, But i have a doubt, Wich one is better , Mysql or file saving (.ini) , I know ofcourse mysql is faster and more functional but I CANT HAVE mysql and my servers files on the same pc coz i cant buy a dedicated server and will be needed to use 000webhost for it (or is there any way to get them on same pc) So wich one shall i make?
|
mysql is not faster... its slover, it cant be faster than fwrite(fastest way for saving .ini, actually all ini systems use fwrite), but it have some great things that fwrite dont have. Good thing is lets say you want to unban players account, with fwrite you must load all file, change only banned key, and again save whole file, but with mysql u can just update one key, and dont need to load other data and save other data like with fwrite...
definitely mysql use!