I tried following the instructions on various parts of the website but most of it seems fairly old so just double checking some things..
I have lua5.1.dll, mysql.dll, and libmySQL.dll all installed in the same directory as my mushclient.exe
I have changed global properties of lua to reflect trust_all_worlds = true
I reloaded the script file
when I try to run
assert (package.loadlib ("mysql.dll", "luaopen_luasqlmysql")) ()
env = assert (luasql.mysql())
con = assert (env:connect ("tumbleweed_db", "tumble", "password", "mudsite.com"))
-- retrieve a cursor
cur = assert (con:execute ("SELECT count(*) from users" ))
-- print all rows, the rows will be indexed by field names
row = cur:fetch ({}, "a")
while row do
table.foreach (row, print)
row = cur:fetch (row, "a")
end
-- close everything
cur:close()
con:close()
env:close()
I get
Immediate execution
[string "Immediate"]:6: LuaSQL: Error connecting to database. MySQL: Can't connect to MySQL server on 'mudsite.com' (10061)
stack traceback:
[C]: in function 'assert'
[string "Immediate"]:6: in main chunk
Have things changed? I can't find much information on this subject that is recent. thanks!