Jump to content

MTA Integrate with SQL


Recommended Posts

Posted

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

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted

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.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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.

Do NOT PM ME for help unless invited. - New MTA Script Editor

Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.

Posted

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)

3677124c9d4d768da64a55d5bebf578e.png
Posted

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 )

Posted

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.

Do NOT PM ME for help unless invited. - New MTA Script Editor

Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.

Posted

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.

3677124c9d4d768da64a55d5bebf578e.png
Posted
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????

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

  • 2 weeks later...
Posted
Read Solidsnake14's post he is correct, sorry for jacking your topic :P

I still don't understand how to make a database!

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
Well do you want to use MySQL or the SQLite?

SQLite

Thanks Lloyd

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...