In the next proxy release we introduce plugins, we talked about it already in MySQL Proxy: a chassis and a mysql server. Take a look at http://svn.mysql.com/svnpublic/mysql-proxy/trunk/plugins/ and check out:
- proxy
- admin
- debug
each of them sharing the common code that is provided by the chassis.
The debug plugin is a lua shell with a mysql-protocol ... well, just read on ;)
The purpose of the plugin is to be able to introspect the proxy at runtime. If it is loaded you can connect to port 4043 and execute lua code inside the proxy core:
$ mysql --user=root --password=secret --port=4043 --host=192.168.2.113 root@192.168.2.113:4043 [(none)]> return 1; +------+ | lua …[Read more]