2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01:00

add mysql-proxy

This commit is contained in:
kev
2016-05-09 21:33:08 +08:00
parent c16d1cc6d6
commit 0cd923ef0b
4 changed files with 40 additions and 0 deletions

5
mysql-proxy/code.lua Normal file
View File

@@ -0,0 +1,5 @@
function read_query(packet)
if packet:byte() == proxy.COM_QUERY then
print("we got a normal query: " .. packet:sub(2))
end
end