Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 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 : OFF Directory : /www/server/mysql/mysql-test/t/ |
Upload File : |
# === Purpose === # # This test case will verify that the mysqldumpslow script # correctly parses the iso8601 timestamp and is able # to summarize the queries correctly. # # ==== Related Bugs and Worklogs ==== # # Bug#24007040 - MYSQLDUMPSLOW ON MYSQL 5.7 DOESN'T FOLLOW # DATETIME FORMAT CHANGE # --source include/not_embedded.inc --source include/not_windows.inc # Disabling the ps-protocol for the test, as enabling it will # give result content mismatch due to logging of some additional # statements in the slow-query-log. --disable_ps_protocol # Save the old values of these variables to be restored at the end SET @old_log_output= @@global.log_output; SET @old_slow_query_log= @@global.slow_query_log; SET @old_slow_query_log_file= @@global.slow_query_log_file; # Enable the logging of queries to slow-query-log. # For testing purpose, let's log all the queries. --replace_result $MYSQLTEST_VARDIR ... eval SET GLOBAL slow_query_log_file= '$MYSQLTEST_VARDIR/log/slow_query_temp.log'; SET GLOBAL log_output= 'FILE'; SET GLOBAL slow_query_log= 'ON'; SET SESSION long_query_time= 0; # Populating the slow-query-log with more than one identical queries. let $1= 5; while ($1) { SHOW VARIABLES LIKE "%long_query_time%"; dec $1; } let $2= 4; while($2) { SELECT 1; dec $2; } # Run mysqldumpslow --echo "Running mysqldumpslow on the slow-query-log" # Masking out the non-deterministic parameters from the results. --replace_regex /Time.*// --exec $MYSQLDUMPSLOW '$MYSQLTEST_VARDIR/log/slow_query_temp.log' -a -s c # clean-up --remove_file $MYSQLTEST_VARDIR/log/slow_query_temp.log SET GLOBAL log_output= @old_log_output; SET GLOBAL slow_query_log= @old_slow_query_log; SET GLOBAL slow_query_log_file=@old_slow_query_log_file; # Enable the ps-protocol --enable_ps_protocol --echo End of test!