Question : Mysql server transaction logging

I was wondering what the recommened way to log every transaction that goes through a Mysql Server. So I can view a log of everything that was added, edited, deleted ect.

Thanks

Answer : Mysql server transaction logging

I have a runQuery() function that logs out any executed query to a text file during development and testing and then logs queries that take longer than my pain threshold to execute in production so I can see the bad queries and work on them.

I use runQuery instead of the php mysql functions.  The php mysql functions are run inside the runQuery() function and inside that function I also set the vars to do the execution timing, etc.
Random Solutions  
 
programming4us programming4us