403Webshell
Server IP : 104.21.38.3  /  Your IP : 104.23.175.168
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/audit_null/t/multiqueries.test
--echo #
--echo # Bug #34207811 : Audit plugin does not log multiqueries correctly.
--echo #
--source include/have_debug.inc
--source include/have_null_audit_plugin.inc
--source include/no_protocol.inc

--replace_regex /\.dll/.so/
eval INSTALL PLUGIN null_audit SONAME '$AUDIT_NULL';

CREATE USER multiqueries_test_user34207811 IDENTIFIED BY 'secret_pswd';
GRANT CREATE USER, SELECT, SUPER ON *.* TO multiqueries_test_user34207811;

--connect(con1,localhost,multiqueries_test_user34207811,secret_pswd)

set @con1_tid = (select thread_id from performance_schema.threads
  where processlist_user = 'multiqueries_test_user34207811');

delimiter |;
SET DEBUG="+d, print_query"|
select 1; select 2; CREATE USER u1 IDENTIFIED BY 'p1'; select 3; ALTER USER 'u1' IDENTIFIED BY 'new_pswd' PASSWORD EXPIRE; select 4;|
SET DEBUG="-d, print_query"|
delimiter ;|

--echo # Check the error log if multiqueries are not logged.
--let $grep_file=$MYSQLTEST_VARDIR/log/mysqld.1.err
--let $grep_output=print_count
--let $grep_pattern=select 1; select 2; CREATE USER u1 IDENTIFIED BY 'p1'; select 3; ALTER USER 'u1' IDENTIFIED BY 'new_pswd' PASSWORD EXPIRE; select 4
--source include/grep_pattern.inc

# Verify the fix for the bug:
# Bug #34569180 : P_S.events_statements_history tables store wrongdata when executing multiqueries
SELECT SQL_TEXT from performance_schema.events_statements_history_long where (thread_id = @con1_tid);

# Clean up
connection default;
--disconnect con1
UNINSTALL PLUGIN null_audit;
DROP USER u1;
DROP USER multiqueries_test_user34207811;

Youez - 2016 - github.com/yon3zu
LinuXploit