mysql-proxy-discuss team mailing list archive
-
mysql-proxy-discuss team
-
Mailing list archive
-
Message #00028
Re: attempt to index local 'auth' (a nil value) in read_handshake
Hi Brock!
It's because the latest MySQL Proxy dosen't pass the authentication
information to the read_handshake() and read_auth() hooks any more. I'm not
sure why this happened, but clearly it is not your Lua script's problem.
If you do want to obtain authentication information in your script, please
give my personal branch a try:
https://code.launchpad.net/~zhuzhaoyuan/mysql-proxy/zhuzhaoyuan. I've added
the authentication information back in this branch.
I hope it works for you.
P.S. There is already an example in ./examples/tutorial-states.lua :-)
Cheers!
--
Joshua Zhu
http://blog.zhuzhaoyuan.com
Follow ups
References