| 1 |
call mtr.add_suppression("Event 'MYSQL_AUDIT_GENERAL_ERROR' cannot be aborted."); |
| 2 |
INSTALL PLUGIN null_audit SONAME 'adt_null.so'; |
| 3 |
SET @@null_audit_event_order_check = 'MYSQL_AUDIT_COMMAND_START;command_id="3";;' |
| 4 |
'MYSQL_AUDIT_PARSE_PREPARSE;;;' |
| 5 |
'MYSQL_AUDIT_PARSE_POSTPARSE;;;' |
| 6 |
'MYSQL_AUDIT_GENERAL_LOG;;;' |
| 7 |
'MYSQL_AUDIT_QUERY_START;sql_command_id="0";;' |
| 8 |
'MYSQL_AUDIT_GENERAL_ERROR;;ABORT_RET'; |
| 9 |
SELECT * FROM mysql.non_existing_table; |
| 10 |
ERROR 42S02: Table 'mysql.non_existing_table' doesn't exist |
| 11 |
SELECT @@null_audit_event_order_check; |
| 12 |
@@null_audit_event_order_check |
| 13 |
EVENT-ORDER-ABORT |
| 14 |
####################################### |
| 15 |
## ABORT GENERAL LOG WITH MY_MESSAGE ## |
| 16 |
####################################### |
| 17 |
SET @@null_audit_abort_message = "Abort with my_message."; |
| 18 |
SET @@null_audit_event_order_check = 'MYSQL_AUDIT_COMMAND_START;command_id="3";;' |
| 19 |
'MYSQL_AUDIT_PARSE_PREPARSE;;;' |
| 20 |
'MYSQL_AUDIT_PARSE_POSTPARSE;;;' |
| 21 |
'MYSQL_AUDIT_GENERAL_LOG;;;' |
| 22 |
'MYSQL_AUDIT_QUERY_START;sql_command_id="0";;' |
| 23 |
'MYSQL_AUDIT_GENERAL_ERROR;;ABORT_RET'; |
| 24 |
SELECT * FROM mysql.non_existing_table; |
| 25 |
ERROR 42S02: Table 'mysql.non_existing_table' doesn't exist |
| 26 |
SELECT @@null_audit_event_order_check; |
| 27 |
@@null_audit_event_order_check |
| 28 |
EVENT-ORDER-ABORT |
| 29 |
UNINSTALL PLUGIN null_audit; |
| 30 |
Warnings: |
| 31 |
Warning 1620 Plugin is busy and will be uninstalled on shutdown |