Quantcast
Channel: MySQL Forums - Router & Proxy
Viewing all articles
Browse latest Browse all 344

can't get proxy.connection.server.dst.name (3 replies)

$
0
0
hai i'm a newbie who uses LUA and mysql proxy as my last project in my institute

i'm having a trouble with the mysql proxy here my code

function read_handshake( auth )
print("<-- let's send him some information about us")
print(" mysqld-version: " .. proxy.connection.server.mysqld_version)
print(" thread-id : " .. proxy.connection.server.thread_id)
print(" scramble-buf : " .. string.format("%q",proxy.connection.server.scramble_buffer))
print(" server-addr : " .. proxy.connection.server.dst.name)
print(" client-addr : " .. proxy.connection.client.dst.name)

end

there some error report said that dst is not exist
like this

(read_handshake) Tes.lua:29: attempt to index field 'dst' (a nil value

and i tried with proxy.connection.client.src.name having same error that said src field is none to

i don't know what my mysql proxy version is (coz i don't know how to check it)

so is there some one that can help me?/

thx

Viewing all articles
Browse latest Browse all 344

Trending Articles