You may have noticed the excitement about MySQL
Proxy. But perhaps you failed to realize what you can do with
it.
Here's a simple tutorial that will guide you through your first
Proxy experience. You will be able to use macros with the
standard mysql client.
Assuming that you are working on the box where your MySQL server
is, do the following:
- Download and unpack MySQL Proxy
- download the query rewriting tutorial and save it as rewrite.lua
- start the proxy
/path/to/sbin/mysql-proxy --proxy-lua-script=rewrite.lua --proxy-profiling - from another terminal, fire the mysql client
mysql -u USERNAME -pPASSWORD -h …