@up
Summing it up, it's what you said.
MySQL was mainly made for multiple server hosting. With MySQL you have to create a server and set it up. Also, when using it you must connect to the database.
Meanwhile, all you need for SQLite is a file, no setups, nothing really needed to run it. SQLite was added to OTServ to replace XML so people still don't need to connect to a MySQL server(even because it is stupid to connect to your own computer, when talking about performance).
The down side of SQLite is the lack of Multi-INSERTs. With MySQL, you could use this:
Code:INSERT INTO "groups" ("name", "flags", "access", "maxdepotitems", "maxviplist") VALUES ("Player", 0, 0, 1000, 50), ("Premium Player", 0, 0, 2000, 100), ("Tutor", 16777216, 0, 1000, 50), ("Premium Tutor", 16777216, 0, 2000, 100), ("Gamemaster", 217768239050, 1, 2000, 100), ("Senior Gamemaster", 269307846602, 2, 2000, 100), ("Community Manager", 272227082232, 3, 2000, 100);
instead of the code on the topic, which is a lot faster. Though that doesn't really matters, since the only big difference is when sending about 10k queries(which is possible when saving house tiles, but that should only happen before closing the server).
The down side of SQLite is the lack of Multi-INSERTs. With MySQL, you could use this:
Code:INSERT INTO "groups" ("name", "flags", "access", "maxdepotitems", "maxviplist") VALUES ("Player", 0, 0, 1000, 50), ("Premium Player", 0, 0, 2000, 100), ("Tutor", 16777216, 0, 1000, 50), ("Premium Tutor", 16777216, 0, 2000, 100), ("Gamemaster", 217768239050, 1, 2000, 100), ("Senior Gamemaster", 269307846602, 2, 2000, 100), ("Community Manager", 272227082232, 3, 2000, 100);
instead of the code on the topic, which is a lot faster. Though that doesn't really matters, since the only big difference is when sending about 10k queries(which is possible when saving house tiles, but that should only happen before closing the server).
BEGIN TRANSACTION;
INSERT INTO ...
<10000x inserts, updates, whatever's>
INSERT INTO ...
END TRANSACTION;
I couldn't create another GM/God acc, I made 1 god and 1 GM on one account but then I tried to do another GM for my friend but it doesn't work, the char doesn't save in the player table :s