How can I split mySQL query logs by database?

Posted by barnaby on Stack Overflow See other posts from Stack Overflow or by barnaby
Published on 2010-04-03T17:33:32Z Indexed on 2010/04/03 17:43 UTC
Read the original article Hit count: 238

Filed under:
|

I've been trying to implement a mySQL Proxy solution that can separate out the queries into per-database logs. Everything I've Googled has pointed to mySQL Proxy but I can only seem to capture the database a connection was opened to, not which the current query is being issued against.

Is it even possible? Is there a different tool to use?

Thanks for any suggestions.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about logging