Lloyd Logan Posted August 2, 2012 Share Posted August 2, 2012 Right guys, Wondering how to to link MTA SA with Mysql, now this may be stupid if someone has already posted a topic about it could you link me to it?. What i mean is, in big scripts such as Valhalla, Vedic etc. , they have a folder named Mysql, but how do they get it, i can set up a big script, but it is no use setting it up if you don't understand any of it,, How do you link MTA:SA with Mysql and Sqlite etc,? Please forgive if this makes me look stupid in some way, or if the question is stupid, but hey, we all need to learn!! Thanks again, Lloyd Link to comment
Castillo Posted August 2, 2012 Share Posted August 2, 2012 Topic moved to "Scripting" section. https://wiki.multitheftauto.com/wiki/Ser ... _functions These are the MySQL and SQLite functions, in order to use MySQL, you need a MySQL server, that could be "xampp" ( is what I use ). SQLite doesn't require a MySQL server, you could either use the function which stores the data on "registry.db": executeSQLQuery, or the db functions which can open custom .db files. Link to comment
robhol Posted August 2, 2012 Share Posted August 2, 2012 Just as a nitpick, XAMPP isn't an SQL server. It's a bundle with Apache, MySQL, PHP and... some other thing. It's fully possible to just install MySQL by itself, you don't need the web server stuff. Link to comment
FWCentral Posted August 2, 2012 Share Posted August 2, 2012 Instead of me starting a new topic, im wondering what is better/faster MySQL or SQLite also what about an external MySQL server? (I would think external is much slower than any local) Link to comment
AeroXbird Posted August 3, 2012 Share Posted August 3, 2012 I prefer MySQL over SQLITE just because of its flexability, you can simply move your MySQL Database all around whenever you want, and there's not too much hassle.. SQLite is handy if you want to save data real quick, but i really recommend MySQL as it's simply superior in flexibility and usability... ( imo ofcourse ) Link to comment
robhol Posted August 3, 2012 Share Posted August 3, 2012 If you run it on the same computer, the difference should be hard to notice. However, SQLite is faster. If you run an external MySQL server, that will obviously be slower (and enough that you might actually notice it) due to networking. Link to comment
FWCentral Posted August 6, 2012 Share Posted August 6, 2012 Yeah that's exactly what i thought about the external server robhol, and yeah the SQLite server is on the same computer (the one built into MTA). Thanks for your info guys. Link to comment
Lloyd Logan Posted August 6, 2012 Author Share Posted August 6, 2012 Yeah that's exactly what i thought about the external server robhol, and yeah the SQLite server is on the same computer (the one built into MTA).Thanks for your info guys. Back to topic guys please???? Link to comment
FWCentral Posted August 6, 2012 Share Posted August 6, 2012 Read Solidsnake14's post he is correct, sorry for jacking your topic Link to comment
Lloyd Logan Posted August 14, 2012 Author Share Posted August 14, 2012 Read Solidsnake14's post he is correct, sorry for jacking your topic I still don't understand how to make a database! Link to comment
FWCentral Posted August 14, 2012 Share Posted August 14, 2012 Well do you want to use MySQL or the SQLite? Link to comment
Lloyd Logan Posted August 15, 2012 Author Share Posted August 15, 2012 Well do you want to use MySQL or the SQLite? SQLite Thanks Lloyd Link to comment
FWCentral Posted August 22, 2012 Share Posted August 22, 2012 executeSQLQuery There is examples on how to create a table and more there. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now