Luapower mysql with mariadb
I am trying out the mysql.lua with mariadb. I have download the code plus put the libmariadb.so in the same directory as my test.lua code. It seems that the luajit cannot locate the library. I am getting the following error. What gives? Thanks.
local mysql = require("mysql")
local conn = mysql.connect('localhost','suser','PassWord','testdb')
luajit: ./mysql.lua:23: libmariadb.so: cannot open shared object file: No such file or directory
[C]: in function 'load'
./mysql.lua:23: in function 'config'
test.lua:3: in main chunk
[C]: at 0x00404d60
Shared libraries need to be near the exe so in bin/platform, not near the lua files. There's a package with libmariadb binaries which you can get with
mgit clone libmariadb