Junkone wrote: > therei sone in perl. i am looking for a equavalent in ruby. i just > want to trace the sql statements being executed by mysql as i cannot > debug my client app to find out what sql it is sending out to the > database. If you use ActiveRecord, try assert_latest{}. It returns an array of arrays containing all SELECT statements emitted during its block, including their EXPLAIN results. But if you need something lower level, doesn't MySQL itself have a query logging option? -- Phlip