Long before there was the official Query Analyzer (QUAN), a component of MySQL Enterprise, SQL analysis was possible using MySQL Proxy.
The following is an introduction to logging and query analysis with MySQL Proxy.
Get MySQL Proxy
You need to first download MySQL Proxy. In this example I am using the Linux RHEL5 64bit OS and Version 0.7.2
$ wget http://dev.mysql.com/get/Downloads/MySQL-Proxy/mysql-proxy-0.7.2-linux-rhel5-x86-64bit.tar.gz/from/http://mirror.trouble-free.net/mysql_mirror/ $ tar xvfz mysql-proxy-0.7.2-linux-rhel5-x86-64bit.tar.gz $ ln -s mysql-proxy-0.7.2-linux-rhel5-x86-64bit mysql-proxy $ export PATH=`pwd`/mysql-proxy/sbin:$PATH $ mysql-proxy --help-all
Pre-requisites
MySQL Proxy uses TCP/IP, so it is important you connect via the actual …
[Read more]