Is there a way to get MySQL to display the query that caused replication to stop? I have a DB with hundreds of identical tables, each of which has a trigger to update a related table. One of these is (apparently) not configured properly. I can't use the 'replication skip' trick as it will simply halt at the next write (and there are thousands).
If I can get the actual 'broken' query I can simply amend the table definition.