Server IP : 172.67.216.182 / Your IP : 172.70.189.29 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/t/ |
Upload File : |
--source include/have_null_audit_plugin.inc --source include/not_embedded.inc --source include/no_protocol.inc --replace_regex /\.dll/.so/ eval INSTALL PLUGIN null_audit SONAME '$AUDIT_NULL'; --echo ############# --echo ## PREPARE ## --echo ############# --echo # 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'; --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT --error ER_AUDIT_API_ABORT PREPARE stmt FROM 'SELECT 1'; SELECT @@null_audit_event_order_check; --error ER_UNKNOWN_STMT_HANDLER EXECUTE stmt; --echo # 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'; --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT --error ER_AUDIT_API_ABORT PREPARE stmt FROM 'SELECT 1'; SELECT @@null_audit_event_order_check; --error ER_UNKNOWN_STMT_HANDLER EXECUTE stmt; --echo ####################################### --echo ## ABORT GENERAL LOG WITH MY_MESSAGE ## --echo ####################################### --echo # 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'; --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT --error ER_AUDIT_API_ABORT PREPARE stmt FROM 'SELECT 1'; SELECT @@null_audit_event_order_check; --error ER_UNKNOWN_STMT_HANDLER EXECUTE stmt; --echo # 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'; --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT --error ER_AUDIT_API_ABORT PREPARE stmt FROM 'SELECT 1'; SELECT @@null_audit_event_order_check; --error ER_UNKNOWN_STMT_HANDLER EXECUTE stmt; --echo ############# --echo ## EXECUTE ## --echo ############# PREPARE stmt FROM 'SELECT 2'; --echo # 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'; --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT --error ER_AUDIT_API_ABORT EXECUTE stmt; SELECT @@null_audit_event_order_check; EXECUTE stmt; # BUG - Aborting 2nd MYSQL_AUDIT_GENERAL_LOG event fails #--echo # 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="100";;' # 'MYSQL_AUDIT_GENERAL_LOG;;ABORT_RET'; #--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT #--error ER_AUDIT_API_ABORT #EXECUTE stmt; #SELECT @@null_audit_event_order_check; #EXECUTE stmt; --echo ####################################### --echo ## ABORT GENERAL LOG WITH MY_MESSAGE ## --echo ####################################### --echo # 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'; --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT --error ER_AUDIT_API_ABORT EXECUTE stmt; SELECT @@null_audit_event_order_check; EXECUTE stmt; # BUG - Aborting 2nd MYSQL_AUDIT_GENERAL_LOG event fails #--echo # 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="100";;' # 'MYSQL_AUDIT_GENERAL_LOG;;ABORT_RET'; #--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT #--error ER_AUDIT_API_ABORT #EXECUTE stmt; #SELECT @@null_audit_event_order_check; #EXECUTE stmt; UNINSTALL PLUGIN null_audit;