Server IP : 172.67.216.182 / Your IP : 172.70.142.19 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/include/ |
Upload File : |
# # Execute the stored programs created in # suite/perfschema/include/program_setup.inc # --echo ##################### --echo # Executing queries # --echo ##################### INSERT INTO t1 VALUES (10,20); CALL SampleProc1(30,40,50); SET @a=1; SELECT @a; CALL SampleProc2("Jwalamukhi",34); SELECT @a; CALL SampleProc3(); CALL SampleProc4(); SET @change=1; SELECT @change; UPDATE t2 SET id=22 WHERE name="Jwalamukhi"; SELECT @change; SET @del=1; SELECT @del; DELETE FROM t1 WHERE i=76; SELECT @del; SELECT wt_avg(1, 12, 1990, 1121990); SELECT fac(5); SELECT append("Bolly", "wood"); --echo # Event SET GLOBAL event_scheduler=ON; CREATE TABLE table_t(a INT); DELIMITER |; CREATE EVENT e1 ON SCHEDULE EVERY 2 SECOND DO BEGIN INSERT INTO table_t VALUES(1); END| DELIMITER ;| # Let e1 insert 1 record into the table table_t --let $wait_condition= select count(*) = 1 from table_t --source include/wait_condition.inc SELECT * FROM table_t; # Wait till the above one execution of event is instrumented. --let $wait_condition= select count(*) = 1 from performance_schema.events_statements_history_long where object_type='EVENT' --source include/wait_condition.inc SET GLOBAL event_scheduler=OFF; --source include/no_running_event_scheduler.inc