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

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/perfschema/t/privilege_table_io.test
# Tests for PERFORMANCE_SCHEMA table io

--source include/not_embedded.inc
--source include/have_perfschema.inc
--source ../include/table_io_setup_helper.inc

# Remove "deleted" records from mysql.* that may come from previous tests,
# to avoid displaying spurious fetch.
# There are two possible server reactions which are both ok.
# Table  Op      Msg_type        Msg_text
# mysql.db       optimize        status  OK
# or
# mysql.db       optimize        status  Table is already up to date
# Therefore we suppress the query_log here.
--echo # We are forced to suppress here the server response.
--disable_result_log
optimize table mysql.host;
optimize table mysql.user;
optimize table mysql.db;
optimize table mysql.proxies_priv;
optimize table mysql.tables_priv;
optimize table mysql.procs_priv;
optimize table mysql.servers;
--enable_result_log

# Start recording events
update performance_schema.setup_consumers set enabled='YES';
update performance_schema.setup_objects set enabled='YES'
  where object_type='TABLE' and object_schema= 'mysql';

# Code to test

flush privileges;
# This will cause table io in mysql system security tables
insert into test.marker set a = 1;
# This will not, the ACL cache is already loaded
insert into test.marker set a = 1;
insert into test.marker set a = 1;
show global variables like "performance_schema%";
show global status like "performance_schema%";
# Stop recording events + pull results
let $schema_to_dump= "test", "mysql";
--source ../include/table_io_result_helper.inc

# Cleanup
--source ../include/table_io_cleanup_helper.inc

update performance_schema.setup_objects set enabled='NO'
  where object_type='TABLE' and object_schema= 'mysql';

Youez - 2016 - github.com/yon3zu
LinuXploit