Page 1 of 1

MySQL (using luaSQL)

Posted: Fri Nov 30, 2012 12:14 pm
by ProFes
When I use UTF-8 with BOM, I get error "Invalid UTF-8".
Whan I use UTF-8 without BOM, I get error "module luasql.mysql not found".
Can someone give me working example or help to solve problem? :(

serverlist.lua

Code: Select all

require 'luasql.mysql'
env = assert (luasql.mysql())

Re: MySQL (using luaSQL)

Posted: Fri Nov 30, 2012 1:22 pm
by Nixola
If luasql is an executable (.dll, .so, .dylib) it should be in the same folder as the love executable, not inside the .love... If it's just a .lua module, then you should upload the .love because you did something wrong and we can't help you with that, aside from telling you to check paths

Re: MySQL (using luaSQL)

Posted: Fri Nov 30, 2012 2:27 pm
by ProFes
Nixola wrote:If luasql is an executable (.dll, .so, .dylib) it should be in the same folder as the love executable, not inside the .love... If it's just a .lua module, then you should upload the .love because you did something wrong and we can't help you with that, aside from telling you to check paths
I drop .dlls in .love. :roll:

Thx! Problem is solved. :)