查询mysql数据库错误语句
创建时间:2024-08-16 09:09:42
Mysql8:
记录10000条语句:
UPDATE performance_schema.setup_consumers SET enabled = 'YES' WHERE NAME ='events_statements_history_long';
查询错误语句:
SELECT * FROM performance_schema.events_statements_history_long WHERE MYSQL_ERRNO>0 ORDER BY timer_start DESC;