lua-resty-mysql
lua-resty-mysql copied to clipboard
Nonblocking Lua MySQL driver library for ngx_lua or OpenResty
Is anyone else seeing aborted mysql connections when using this? We are using percona mysql, and I am calling the db:close() as shown below. local ok, err = db:close() if...
MySQL ping method/query could let us know in advance before executing a query if the server is reachable and in good state. The feature request is to add this ping...
My server chatsert is utf8mb4, and also i query "set names 'utf8mb4'" after connect
Like an example,is each http request creates a new connection, or to check is have a pool. If have a pool,use it .if not create a pool ``` local ok,...
First of all, `cosocket` is cool :) Thanks for the excellent work @agentzh and other contributors. I could never imagine writing an async mysql / postgres driver in lua within...
In PHP you have 2 part, execute query and then fetch the result one by one, this is save resources and very fast. I am comparing fetching 100000records and php...
Hi, first, thanks for all this work on openresty!, it is very useful :). And sorry for the large comment :) I'm considering using it for replacing some parts of...
I found `lua-nginx-websocket` in Debian's repository that is maintained by _Laurent Arnoud_ which refers to lua-resty-websocket. Just wondering if there is a way to install packages like `lua-resty-mysql/redis/etc` with `aptitude`...
The function connect will create a new mysql connection or select a free connection from pool! If there are too many connection using, I don't want it to return immediately...
Example: ``` local ok, err, errno, sqlstate = db:connect{ dsn="host=127.0.0.1;port=3306;database=ngx_test;user=ngx_test;password=ngx_test", max_packet_size = 1024 * 1024 } ```