403Webshell
Server IP : 88.99.149.37  /  Your IP : 216.73.216.141
Web Server : nginx/1.31.2
System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64
User : muralimurth ( 1015)
PHP Version : 8.4.23
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/mysql/mysql-test/main/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/mysql/mysql-test/main/alter_events.test
--source include/not_embedded.inc
--source include/have_innodb.inc
#--source include/have_metadata_lock_info.inc

#
# Testing of problems with ALTER TABLE and events on the same table(s)
#

#
# MDEV-24452 ALTER TABLE event take infinite time which for example breaks
#            mysql_upgrade
#

SET GLOBAL event_scheduler=1;

CREATE TABLE t1 (a int primary key, b int) engine=innodb;
insert into t1 values (1,1),(2,2),(3,3);
CREATE TABLE t2 (a int primary key) engine=innodb;

CREATE EVENT e_t1 ON SCHEDULE EVERY 1 SECOND DO insert ignore into test.t2 select a from test.t1;

let $wait_condition=SELECT count(*) > 0 from t2;
--source include/wait_condition.inc
select * from t2;
drop event e_t1;

# select * from information_schema.metadata_lock_info;
ALTER TABLE mysql.event DROP PRIMARY KEY, ADD PRIMARY KEY(db,name);
drop table t1,t2;

SET GLOBAL event_scheduler=default;

Youez - 2016 - github.com/yon3zu
LinuXploit