http://www.perlmonks.org?node_id=100364


in reply to How can I see error messages from MySQL?

DBI has excellent function DBI->trace(2), printing a string for each DBI action made (as connect, prepare, execute). Will even show you which data were fetched, row by row. Excellent for debug.