Is there a way to log only certain MySQL operations?
I need to enable it's log in a production server but only for drop/create commands. Unfortunately logging everything is slow and I only need these specific commands.
MySQL
Is there a way to log only certain MySQL operations?
I need to enable it's log in a production server but only for drop/create commands. Unfortunately logging everything is slow and I only need these specific commands.
Best Answer
There is no sophisticated way to log queries in mysql. The only thing you can do is the following:
http://dev.mysql.com/doc/refman/5.1/en/query-log.html