Server IP : 104.21.38.3 / Your IP : 108.162.226.243 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/audit_null/r/ |
Upload File : |
INSTALL PLUGIN null_audit SONAME 'adt_null.so'; ############# ## PREPARE ## ############# # Abort first MYSQL_AUDIT_GENERAL_LOG event SET @@null_audit_event_order_check = 'MYSQL_AUDIT_COMMAND_START;command_id="3";;' 'MYSQL_AUDIT_PARSE_PREPARSE;;;' 'MYSQL_AUDIT_PARSE_POSTPARSE;;;' 'MYSQL_AUDIT_GENERAL_LOG;;ABORT_RET'; PREPARE stmt FROM 'SELECT 1'; ERROR HY000: Aborted by Audit API ('MYSQL_AUDIT_GENERAL_LOG';1). SELECT @@null_audit_event_order_check; @@null_audit_event_order_check EVENT-ORDER-ABORT EXECUTE stmt; ERROR HY000: Unknown prepared statement handler (stmt) given to EXECUTE # Abort second MYSQL_AUDIT_GENERAL_LOG event SET @@null_audit_event_order_check = 'MYSQL_AUDIT_COMMAND_START;command_id="3";;' 'MYSQL_AUDIT_PARSE_PREPARSE;;;' 'MYSQL_AUDIT_PARSE_POSTPARSE;;;' 'MYSQL_AUDIT_GENERAL_LOG;;;' 'MYSQL_AUDIT_QUERY_START;sql_command_id="99";;' 'MYSQL_AUDIT_PARSE_PREPARSE;;;' 'MYSQL_AUDIT_PARSE_POSTPARSE;;;' 'MYSQL_AUDIT_GENERAL_LOG;;ABORT_RET'; PREPARE stmt FROM 'SELECT 1'; ERROR HY000: Aborted by Audit API ('MYSQL_AUDIT_GENERAL_LOG';1). SELECT @@null_audit_event_order_check; @@null_audit_event_order_check EVENT-ORDER-ABORT EXECUTE stmt; ERROR HY000: Unknown prepared statement handler (stmt) given to EXECUTE ####################################### ## ABORT GENERAL LOG WITH MY_MESSAGE ## ####################################### # Abort first MYSQL_AUDIT_GENERAL_LOG event SET @@null_audit_abort_message = "Abort with my_message."; SET @@null_audit_event_order_check = 'MYSQL_AUDIT_COMMAND_START;command_id="3";;' 'MYSQL_AUDIT_PARSE_PREPARSE;;;' 'MYSQL_AUDIT_PARSE_POSTPARSE;;;' 'MYSQL_AUDIT_GENERAL_LOG;;ABORT_RET'; PREPARE stmt FROM 'SELECT 1'; ERROR HY000: Abort with my_message. SELECT @@null_audit_event_order_check; @@null_audit_event_order_check EVENT-ORDER-ABORT EXECUTE stmt; ERROR HY000: Unknown prepared statement handler (stmt) given to EXECUTE # Abort second MYSQL_AUDIT_GENERAL_LOG event SET @@null_audit_abort_message = "Abort with my_message."; SET @@null_audit_event_order_check = 'MYSQL_AUDIT_COMMAND_START;command_id="3";;' 'MYSQL_AUDIT_PARSE_PREPARSE;;;' 'MYSQL_AUDIT_PARSE_POSTPARSE;;;' 'MYSQL_AUDIT_GENERAL_LOG;;;' 'MYSQL_AUDIT_QUERY_START;sql_command_id="99";;' 'MYSQL_AUDIT_PARSE_PREPARSE;;;' 'MYSQL_AUDIT_PARSE_POSTPARSE;;;' 'MYSQL_AUDIT_GENERAL_LOG;;ABORT_RET'; PREPARE stmt FROM 'SELECT 1'; ERROR HY000: Abort with my_message. SELECT @@null_audit_event_order_check; @@null_audit_event_order_check EVENT-ORDER-ABORT EXECUTE stmt; ERROR HY000: Unknown prepared statement handler (stmt) given to EXECUTE ############# ## EXECUTE ## ############# PREPARE stmt FROM 'SELECT 2'; # Abort first MYSQL_AUDIT_GENERAL_LOG event SET @@null_audit_event_order_check = 'MYSQL_AUDIT_COMMAND_START;command_id="3";;' 'MYSQL_AUDIT_PARSE_PREPARSE;;;' 'MYSQL_AUDIT_PARSE_POSTPARSE;;;' 'MYSQL_AUDIT_GENERAL_LOG;;ABORT_RET'; EXECUTE stmt; ERROR HY000: Aborted by Audit API ('MYSQL_AUDIT_GENERAL_LOG';1). SELECT @@null_audit_event_order_check; @@null_audit_event_order_check EVENT-ORDER-ABORT EXECUTE stmt; 2 2 ####################################### ## ABORT GENERAL LOG WITH MY_MESSAGE ## ####################################### # Abort first MYSQL_AUDIT_GENERAL_LOG event SET @@null_audit_abort_message = "Abort with my_message."; SET @@null_audit_event_order_check = 'MYSQL_AUDIT_COMMAND_START;command_id="3";;' 'MYSQL_AUDIT_PARSE_PREPARSE;;;' 'MYSQL_AUDIT_PARSE_POSTPARSE;;;' 'MYSQL_AUDIT_GENERAL_LOG;;ABORT_RET'; EXECUTE stmt; ERROR HY000: Abort with my_message. SELECT @@null_audit_event_order_check; @@null_audit_event_order_check EVENT-ORDER-ABORT EXECUTE stmt; 2 2 UNINSTALL PLUGIN null_audit; Warnings: Warning 1620 Plugin is busy and will be uninstalled on shutdown