We would like to turn on query logging so we can find queries that change data.
It it possible to do transaction logs to a database?
what is the difference between binlog and the general query log?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If enabled, the binary log includes all queries that modify data. But you should be aware of the format. It’s stored in binary format, so you need to convert it to get the actual SQL. Also, if you’re using row-based replication with MySQL 5.1 or later, then you may not be able to get the actual SQL statements that ran.
The general query log includes all queries, even SELECTs that do not modify data.
You should take a look at mk-query-digest, which offers several different ways to monitor queries.