MySQL (using luaSQL)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
ProFes
Prole
Posts: 2
Joined: Fri Nov 30, 2012 12:08 pm

MySQL (using luaSQL)

Post 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())
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: MySQL (using luaSQL)

Post 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
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ProFes
Prole
Posts: 2
Joined: Fri Nov 30, 2012 12:08 pm

Re: MySQL (using luaSQL)

Post 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. :)
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 3 guests