lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 5 May 2012 16:37, Sandeep Ghai <sandeep.ghai92@gmail.com> wrote:
> Check here:
> http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexb25c.html?title=MySQL_Tutorial
>
> I am basically trying to establish connection between Lua and MySql
> Database. For this I was surfing sites and found the above one.
> The programs in the link given above are written in Lua (if I am not wrong)
> and MySqlOO is used, Thats why I tried to install it and wanted to know
> about it.
> Otherwise Can anyone tell me about the package that I can use for my purpose
> i.e. for establishing connection between Lua program and the MySQL database.

Unless you are constrained to Garry's mod, you should try out the
LuaSQL-MySQL module [1]. It is available as 'luasql-mysql' both in
LuaRocks [2] and in LuaDist [3]:

luarocks install luasql-mysql
luadist install luasql-mysql

[1] http://www.keplerproject.org/luasql/
[2] http://luarocks.org/
[3] http://luadist.org/