Jump to content

some questions about how to use mysql in lua


fraggerman

Recommended Posts

Posted

Hi, and at first, yeah i am starting with lua, but i got some experiences with pawn already and with pawn i never had much problems using MYSQL.

Well, now i found those functions:

https://wiki.multitheftauto.com/wiki/Ser ... _functions

i suppose, i can use them without any modules, cause it doesn't say i need some..

Now my questions:

1. Where is the MYSQL connect?? I havn't found any MYSQL funcions, that prompt for the connection information, like username, password or database.

2. If it isn't needed, where is the database?

3. Does the MTA-Server create an own database?

4. if 3. is true, can i access the database with programs like Navicat?

PS: i used the search to find similar questions, but i didn't find answers that helped me..

Posted

this is not MySQL but SQLite.

to use mysql you have to download addional module.

SQLite is .. some kind of lite version of mysql. whole database is stored in registry.db file AFAIR

google for sqlite browser and download it.

or just download and use mysql module from here: https://wiki.multitheftauto.com/wiki/Mysql

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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...