Server IP : 172.67.216.182 / Your IP : 172.68.242.47 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/perfschema/t/ |
Upload File : |
# Tests for PERFORMANCE_SCHEMA --source include/not_embedded.inc --source include/have_perfschema.inc --source ../include/start_server_common.inc select * from information_schema.engines where engine = "PERFORMANCE_SCHEMA"; # Expecting all off / zero show global status like "performance_schema%"; # Expect all consumers disabled select * from performance_schema.setup_consumers; # Expect no instruments select * from performance_schema.setup_instruments; select * from performance_schema.setup_actors; select * from performance_schema.setup_objects; select * from performance_schema.setup_timers; # Expect INSERT to fail with an error --error ER_WRONG_PERFSCHEMA_USAGE insert into performance_schema.setup_objects values ('TABLE', 'myschema', 'myobject', 'YES', 'YES'); --error ER_WRONG_PERFSCHEMA_USAGE insert into performance_schema.setup_actors values ('myhost', 'mysuser', 'myrole', 'YES', 'YES'); # Expect SELECT, UPDATE, DELETE and TRUNCATE to affect 0 rows, but with # no error because the target row(s) will not be found select * from performance_schema.setup_objects; update performance_schema.setup_objects set OBJECT_NAME = 'myobject'; delete from performance_schema.setup_objects; select * from performance_schema.setup_actors; update performance_schema.setup_actors set HOST = 'myhost'; delete from performance_schema.setup_actors; truncate performance_schema.events_stages_history_long; truncate performance_schema.events_statements_history_long; truncate performance_schema.events_waits_history_long; truncate performance_schema.setup_objects; truncate performance_schema.setup_actors; # # Verify SHOW STATUS and SHOW VARIABLES with show_compatibility_56=OFF # select @@global.show_compatibility_56 into @show_compatibility_56_save; set global show_compatibility_56 = OFF; --disable_warnings # Expect that status variables are still accessible show global status like "performance_schema%"; show session status like "performance_schema%"; # Expect that system variables are still accessible show global variables like "show_compatibility_56"; show session variables like "show_compatibility_56"; --enable_warnings # Cleanup set @@global.show_compatibility_56 = @show_compatibility_56_save;