It is a purely MySQL tweaking question on logging the failed SQL attempts. I need a solution to log the failed SQLs on the MySQL database.
The MySQL general query log does not work here, because it will log only the successful queries only. I need to know the failed ones in a different log file.
My scenario is: I need to cleanup a big messy SQLs and PHP Scripts (literally, around 7,000 SQLs being executed per page). Since the errors are suppressed on the server, even the SQLs failed queries will continue and show the good contents on the website. But I am sure, there are a lot of SQL errors. I found 2 links but cannot retry. This one and writing server side audit plugin in MySQL.
Is using Kontrolbase an answer as mentioned here.