MySQL Forums
Forum List  »  Router & Proxy

MySQL Proxy and Global Variables
Posted by: Edwin DeSouza
Date: August 07, 2007 08:21PM

MySQL Proxy and Global Variables

If you haven't checked out the MySQL Proxy yet, it is definitely worth playing with. One of the most useful features is the embedded Lua interpreter that allows a user such as myself to write scripts that modify queries and responses. Upon each connection to the proxy server, the Lua script is loaded and affects only that connection. Unfortunately my project requires logging over multiple connections (hard when each connections has its own instance of the script), but Jan was nice enough to add the PROXY.global feature. Now a single instance of my logging module can be used by multiple connections. So for your viewing pleasure, I am going to show you an example of how to use the globals in case you ever venture into using the proxy's embedded Lua interpreter.

http://cmcahoon.blogspot.com/2007/08/mysql-proxy-and-global-variables.html

Options: ReplyQuote


Subject
Views
Written By
Posted
MySQL Proxy and Global Variables
3560
August 07, 2007 08:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.