Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to setup a "pseudo-server" to intercept all the SQL queries made by my local application.

The reason for that is that I can't administer the Mysql server, and it's difficult for me to edit the configuration files to enable any logging. The easiest way would be to have a Sql "router" that would redirect all my queries to the original server, but log them for me to debug. That way I would only have to set the server URL to localhost (and configure the username).

share|improve this question
up vote 2 down vote accepted

Check out

share|improve this answer
Perfect, a bit tricky to set up, but now it works! – Matthieu Napoli Jun 15 '11 at 8:06
I also recommend using the following script: – Matthieu Napoli Jun 15 '11 at 8:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.