lua-resty-mysql
lua-resty-mysql copied to clipboard
Nonblocking Lua MySQL driver library for ngx_lua or OpenResty
code: ``` local mysql = require("resty.mysql") local db, err = mysql:new() if not db then return 500, { message = "failed to instantiate mysql: " .. err } end db:set_timeout(1000)...
I use `ab - n 100000- c 500- p postfile - T 'application \ json' http://localhost/api/xxx` Command to perform stress test, this error message appears in `error.log`
a table field has large content which memory exceed 16M。if you query this contents, response is not correctly。service returned two rows which contents was splited two parts. can I change...
When my mysql uses the connect function, it keeps throwing errors, which has cost us two weeks!! I hope someone can help me Error: lua entry thread aborted: runtime error:...
the Synopsis in readme use `local res, err, errcode, sqlstate = db:query("drop table if exists cats") if not res then ngx.say("bad result: ", err, ": ", errcode, ": ", sqlstate,...
As the title.
mysql: 8.4.2 code: ``` function _M.new() local db, err = mysql:new() if not db then ngx.log(ngx.ERR, "failed to instantiate mysql: ", err) return nil, err end db:set_timeout(1000) --1 second local...