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/suite/rpl/r/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/mysql/mysql-test/suite/rpl/r/rpl_foreign_key_ddl_insert.result
include/master-slave.inc
[connection master]
connection master;
CREATE TABLE t1 (
id INTEGER PRIMARY KEY,
f2 INTEGER
);
CREATE TABLE t2 (
id INT PRIMARY KEY,
t1_id INT NOT NULL,
f2 INTEGER NOT NULL,
KEY key_t1_id(t1_id),
CONSTRAINT key_t1_id FOREIGN KEY (t1_id) REFERENCES t1 (id) ON UPDATE CASCADE ON DELETE CASCADE
);
INSERT INTO t1 VALUES (1,0);
INSERT INTO t1 VALUES (2,0);
INSERT INTO t2 VALUES (1,1,1234);
connection slave;
connection slave;
SET @saved_dbug = @@GLOBAL.debug_dbug;
set @@global.debug_dbug= "+d,sync.rm_table_no_locks";
set global slave_exec_mode='IDEMPOTENT';
connection master;
DROP TABLE t2;
connection slave;
set debug_sync='now WAIT_FOR after_lock_table';
connection master;
START TRANSACTION;
INSERT INTO t1 VALUES (3,0);
COMMIT;
connection slave;
SET DEBUG_SYNC= 'RESET';
set debug_sync='now SIGNAL continue';
SET @@GLOBAL.debug_dbug = @saved_dbug;
set global slave_exec_mode='STRICT';
connection slave;
select * from t1;
id	f2
1	0
2	0
3	0
select * from t2;
ERROR 42S02: Table 'test.t2' doesn't exist
connection master;
select * from t1;
id	f2
1	0
2	0
3	0
select * from t2;
ERROR 42S02: Table 'test.t2' doesn't exist
DROP TABLE t1;
connection slave;
connection master;
CREATE TABLE t1 (
id INTEGER PRIMARY KEY,
f2 INTEGER
);
CREATE TABLE t2 (
id INT PRIMARY KEY,
t1_id INT NOT NULL,
f2 INTEGER NOT NULL,
KEY key_t1_id(t1_id),
CONSTRAINT key_t1_id FOREIGN KEY (t1_id) REFERENCES t1 (id) ON UPDATE CASCADE ON DELETE CASCADE
);
INSERT INTO t1 VALUES (1,0);
INSERT INTO t1 VALUES (2,0);
INSERT INTO t2 VALUES (1,1,1234);
connection slave;
connection slave;
SET @saved_dbug = @@GLOBAL.debug_dbug;
set @@global.debug_dbug= "+d,sync.rm_table_no_locks";
set global slave_exec_mode='STRICT';
connection master;
DROP TABLE t2;
connection slave;
set debug_sync='now WAIT_FOR after_lock_table';
connection master;
START TRANSACTION;
INSERT INTO t1 VALUES (3,0);
COMMIT;
connection slave;
SET DEBUG_SYNC= 'RESET';
set debug_sync='now SIGNAL continue';
SET @@GLOBAL.debug_dbug = @saved_dbug;
set global slave_exec_mode='STRICT';
connection slave;
select * from t1;
id	f2
1	0
2	0
3	0
select * from t2;
ERROR 42S02: Table 'test.t2' doesn't exist
connection master;
select * from t1;
id	f2
1	0
2	0
3	0
select * from t2;
ERROR 42S02: Table 'test.t2' doesn't exist
DROP TABLE t1;
connection slave;
include/rpl_end.inc

Youez - 2016 - github.com/yon3zu
LinuXploit