Setting up mysql proxy (windows)

February 21, 2011 MySQL

Sometimes you need to view the exact query that your client sent to the server. For example, if you don’t know how PDO binds and escapes params or you’re using ORM. There is mysql proxy utility to facilitate this. So in order to install it you should:

1. Download the distribution fromĀ https://dev.mysql.com/get/Downloads/MySQ … oobly.com/
2. You don’t need to install anything. Just launch

where ‘proxy-backend-addresses’ is the IP:port where to forward your queries. ‘proxy-lua-script’ – is the full path to the .lua script from mysql proxy bundle. Be sure to use the full path, otherwise you’d get the error:

3. create a .bat and add it to your startup (if you wish of course)
4. By default it listens on 4040 port, so you should reconfig the app you want to debug to connect to localhost:4040
Here is the screenshot of working proxy:


Leave a Reply

Your email address will not be published