Jump to content

Lua + MySQL


Ryuk

Recommended Posts

Hello,

I was trying to use SQL stats logger http://mygamingtalk.com/forums/files/file/18-sql-stats-logger/ by Sol and I get this error on startup:

0:12 Lua API: Loading dbstats.lua
0:12 Lua API: G_LuaStartVM error running lua script: D:\Program Files\ETserver\silent\LUA/dblib.lua:9: module 'luasql.mysql' not found:
	no field package.preload['luasql.mysql']
	no file 'D:\Program Files\ETserver\silent\luasql\mysql.lua'
	no file 'D:\Program Files\ETserver\silent\lualibs\luasql\mysql.lua'
	no file 'D:\Program Files\ETserver\silent\lualibs\luasql\mysql.dll'
	no file 'D:\Program Files\ETserver\silent\lualibs\luasql.dll'

What does it mean? Do I need something more than regular silEnT mod installation to run this script?

Link to comment
Share on other sites

I can and i did that but these files doesn't work properly. I downloaded mysql.so from NOQ files and placed it in silent/lualibs/luasql/ and now i get this error:

2377:19 Lua API: G_LuaStartVM error running lua script: error loading module 'luasql.mysql'
libssl.so.0: cannot open shared object file: No such file or directory

 

Link to comment
Share on other sites

  • Management

It looks like it has dependency on the libssl library and it is not available. You could either put it there and export the LD_LIBRARY_PATH variable to point to the directory with the libssl library  prior to running the server or ask the server maintainer to install libssl system wide. I would recommend the latter.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...