MySQL Proxy : Open-source project for MySQL query manipulation and redirection.
MySQL Proxy is an open-source program that sits between your client and MySQL server(s) that can monitor, analyze, transform and/or redirect communication of queries.
LUA scripts have been provided for encourage development and contribution of code for connections pooling and advancement query routing.