[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.133.119.72: ~ $
include/master-slave.inc
[connection master]
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t2;
DROP PROCEDURE IF EXISTS p1;
DROP PROCEDURE IF EXISTS p2;
CREATE TABLE IF NOT EXISTS t1(name CHAR(16), birth DATE,PRIMARY KEY(name))ENGINE=NDBCLUSTER;
CREATE TABLE IF NOT EXISTS t2(name CHAR(16), age INT ,PRIMARY KEY(name))ENGINE=NDBCLUSTER;
CREATE PROCEDURE p1()
BEGIN
DECLARE done INT DEFAULT 0;
DECLARE spa CHAR(16);
DECLARE spb INT;
DECLARE cur1 CURSOR FOR SELECT name, 
(YEAR(CURDATE())-YEAR(birth))-(RIGHT(CURDATE(),5)<RIGHT(birth,5)) 
FROM t1;
DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET done = 1;
OPEN cur1;
SET AUTOCOMMIT=0;
REPEAT
FETCH cur1 INTO spa, spb;
IF NOT done THEN
START TRANSACTION;
INSERT INTO t2 VALUES (spa,spb);
COMMIT;
END IF;
UNTIL done END REPEAT;
SET AUTOCOMMIT=1;
CLOSE cur1;
END|
CREATE PROCEDURE p2()
BEGIN
INSERT INTO t1 VALUES ('MySQL','1993-02-04'),('ROCKS', '1990-08-27'),('Texas', '1999-03-30'),('kyle','2005-1-1');
END|
CALL p2();
include/sync_slave_sql_with_master.inc
CALL p1();
include/sync_slave_sql_with_master.inc
DROP TABLE t1;
DROP TABLE t2;
DROP PROCEDURE p1;
DROP PROCEDURE p2;
include/sync_slave_sql_with_master.inc
include/rpl_end.inc

Filemanager

Name Type Size Permission Actions
rpl_ndb_UUID.result File 1.01 KB 0644
rpl_ndb_blob2.result File 4.85 KB 0644
rpl_ndb_commit_afterflush.result File 201 B 0644
rpl_ndb_ddl.result File 30 KB 0644
rpl_ndb_delete_nowhere.result File 332 B 0644
rpl_ndb_dist_priv.result File 9.43 KB 0644
rpl_ndb_extra_col_master.result File 54.02 KB 0644
rpl_ndb_extra_col_slave.result File 17.98 KB 0644
rpl_ndb_func003.result File 862 B 0644
rpl_ndb_insert_ignore.result File 1.13 KB 0644
rpl_ndb_mixed_implicit_commit_binlog.result File 31.39 KB 0644
rpl_ndb_multi_update2.result File 1 KB 0644
rpl_ndb_multi_update3.result File 3.46 KB 0644
rpl_ndb_relayrotate.result File 257 B 0644
rpl_ndb_row_001.result File 923 B 0644
rpl_ndb_row_basic.result File 19.41 KB 0644
rpl_ndb_row_implicit_commit_binlog.result File 31.57 KB 0644
rpl_ndb_set_null.result File 988 B 0644
rpl_ndb_sp003.result File 1.13 KB 0644
rpl_ndb_sp006.result File 1.16 KB 0644
rpl_ndb_trig004.result File 819 B 0644
rpl_ndb_typeconv_all.result File 1.47 KB 0644
rpl_ndb_typeconv_lossy.result File 1.44 KB 0644
rpl_ndb_typeconv_nonlossy.result File 1.45 KB 0644
rpl_ndb_typeconv_strict.result File 1.43 KB 0644