lua-users home
lua-l archive

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

Dear Tomas,

Thank you for your reply.

I have a doubt regarding the libraries included in luasql package. When I downloaded the luasql-master zip file from Github (, it did not have library in <lua_package>/src which would be installed in the/usr/local/lib/lua/5.2/luasql path.

Also, mysql.lua is not present in the package. 

I looked for downloading separately, but found no luck.

I am in doubt, whether the above Github luasql is the right package for testing mysql db connectivity using lua.
Kindly share your thoughts.

Thanks for your time.


 Message: 1
Date: Fri, 25 Jul 2014 08:15:14 -0300 (BRT)
From: Tomas Guisasola Gorham
Subject: Re: Need help in Connecting to MySQL
To: Lua mailing list

Content-Type: text/plain; charset="iso-8859-1"

Hi Poojita

Check where the library ( have been installed. It should
be at /usr/local/lib/lua/5.2/luasql/


On Fri, 25 Jul 2014, T Poojita/CHN/TCS wrote:

> =

Hi Users,
I have been learning Lua recently and trying to connect to a local MySQL =

Lua has been installed in my Linux machine at location /usr/local/

Lua 5.2.3 Copyright (C) 1994-2013, PUC-Rio

I downloaded Luasql package from github and installed using makefile. The b=
elow path /usr/local/lib/lua/5.2/luasql contains

the below files related to MySQL.


When I try to run a sample mysql program I get the following error.

lua: testing.lua:3: module 'luasql.mysql' not found:
no field package.preload['luasql.mysql']
no file '/usr/local/share/lua/5.2/luasql/mysql.lua'
no file '/usr/local/share/lua/5.2/luasql/mysql/init.lua'
no file '/usr/local/lib/lua/5.2/luasql/mysql.lua'
no file '/usr/local/lib/lua/5.2/luasql/mysql/init.lua'
no file './luasql/mysql.lua'
no file '/usr/local/lib/lua/5.2/luasql/'
no file '/usr/local/lib/lua/5.2/'
no file './luasql/'
no file '/usr/local/lib/lua/5.2/'
no file '/usr/local/lib/lua/5.2/'
no file './'
stack traceback:
[C]: in function 'require'
testing.lua:3: in main chunk
[C]: in ?

Request your kind support, as how to configure Lua to use luasql in connecting to MySQL.
Thanks in advance..



Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you