How to do for connect lua language with mysql?

236
August 27, 2017, at 05:49 AM

I'm making one small size application in lua but I have problems with mysql. I'm using one sample of the forums but he is returned this error: "attempt to index a boolean value".

My code:

mysql = require "luasql-mysql" --(fullname of the file .lua);
local env = mysql.mysql() --is this error
Answer 1

Give us the full stacktrace or error you received. Perhaps you set up the library incorrectly and its returning nil.

READ ALSO
Mysql Query data between date on joined table [duplicate]

Mysql Query data between date on joined table [duplicate]

This question already has an answer here:

128
Trying to get property of non-object in edit.blade.php(laravel 4.2)

Trying to get property of non-object in edit.blade.php(laravel 4.2)

While editing the blade file for multi select field, I'm getting property of non-object in my editblade

222
Mysql UPDATE where distinct or unique

Mysql UPDATE where distinct or unique

I am trying to create a query to mass update a value (default_on) where the id_product is distinct

284