How to log error queries in mysql?

Posted by user271768 on Stack Overflow See other posts from Stack Overflow or by user271768
Published on 2010-04-17T13:55:53Z Indexed on 2010/04/17 14:03 UTC
Read the original article Hit count: 517

Filed under:
|
|
|
|

I know that there is general_log that logs all queries, but I want to find out which query has an error, and get the error message. I have tried running an error query on purpose, but it logs as a normal query and doesn't report it with error. Any ideas?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about mysql-query