INI to mysql - 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: INI to mysql (
/showthread.php?tid=470385)
INI to mysql -
razvan123 - 17.10.2013
How can i move from ini to mySQL ,thanks in advance..a tutorial or something?
Re: INI to mysql -
StuartD - 17.10.2013
MySQL Tutorial:
https://sampforum.blast.hk/showthread.php?tid=305994
Also there is a tool to convert the .ini files if you have any:
https://sampforum.blast.hk/showthread.php?tid=245893
Re: INI to mysql -
kaisersouse - 17.10.2013
I have to do the same, and I intend to do so by writing a 'conversion script' (filterscript) that looks for "converted = 1" in their ini file. If it doesn't see it, it will move all the info from the ini to the mysql DB and then add "converted = 1" to their ini. It will convert on the fly when the player logs in. When they log in a second time, it won't convert them again because now they'll have 'converted = 1' in their ini file. When it sees that, the script will know to use mysql for them instead of ini
I intend to leave this system in place for 6 months or so. Anyone who hasn't logged in for 6 months will be out of luck and will have to start over with a fresh account in mysql
Thats my plan anyways.
EDIT: OR I'll use the script StuartD linked to hahaha