• lua and mysql
    8 replies, posted
Hello I am looking for someone who could help me with lua and mysql. I was trying to look good how to use mysql with lua but in vain. if someone could tell me how intaler and how to use mysql with lua it would be nice.
[QUOTE] I was trying to look good how to use mysql with lua but in vain. [/QUOTE] Your grammer = :suicide:
sorry i'm french and google traduction is not very good but it is the content that counts.
[url]http://www.keplerproject.org/luasql/manual.html[/url]
Wasn't there some library some chap on here made which provided mysqlite and sql functionality within LUA a while ago, I'll take a look when I leave work but I'm pretty sure it was on here a year or so back. I remember linking my gmod server to my webserver and storing players who joined the server in my mysql database. Pointless at the time as I had no idea what I wanted to make with it. I'll see if I can dig it up for you. Edit: There, I knew I saw it somewhere. [url]http://facepunch.com/threads/933647?highlight=lua+mysql+dll[/url] Here you go ol' chap.
[QUOTE]require("mysqloo")[/QUOTE] where is it ?
[QUOTE=assassinkill;35542301]where is it ?[/QUOTE] There's a download at the bottom of the OP's post. [QUOTE] [list][*]Extract the zip file to your garrysmod\addons directory (ie: c:\steam\steamapps\username\garrysmod\garrysmod\ad dons)[*]Take the libmySQL.dll, and put it in the same directory as HL2.EXE (ie: c:\steam\steamapps\username\garrysmod)[*]Move the files gmsv_mysqloo.dll and gmcl_mysqloo.dll to the garrysmod\lua\includes\modules folder.[/list] [/QUOTE] Not sure why the other idiot rated my post dumb... lol.
i don't use garry's mod but just LUA. require "mysqloo" just say include "mysqloo.lua", isn't it ? i didn't found mysqloo.lua in your ZIP.
This goes in the questions subforum in the Lua section.
Sorry, you need to Log In to post a reply to this thread.