Fixed, it was only an installation issue in my end, sorry. :)
Em quinta-feira, 25 de agosto de 2016 19:58:39 UTC-3, rpaprocki escreveu:
Can you post a full, minimal, reproducible example of the issue? And can you clarify exactly why the issue is? "It hangs" is not terrible descriptive. Is there an entry in the error log? Have you confirmed that your MySQL server is accessible via the host/port/name/password you provide?
On Thu, Aug 25, 2016 at 3:37 PM, Fr3DBr
<fr3...@gmail.com> wrote:
For instance this is how it looks like:
Lua File:
local _M = {}
function _M.check_sql()
local mysql = require "resty.mysql"
local db, err = mysql:new()
...
end
function _M.init_timers()
end
end
Nginx Config:
init_worker_by_lua '
whmcs = require "lua/ext_sql"
whmcs.init_timers()
';
Em quinta-feira, 25 de agosto de 2016 18:57:16 UTC-3, Fr3DBr escreveu:
Hi, guys.
I have a .lua file, which I an including towards my nginx.conf file. Although, when I try to use mysql from it, it hangs exactly here:
local mysql = require "resty.mysql"
I'm using openresty (latest version) and mysql is surely included there, but I'm not sure why using the resty.mysql extension inside a regular .lua file isn't working (even tho it is included through nginx config file).
Any light ? :D