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 | : 3.15.18.157
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 /
extra /
binlog_tests /
[ HOME SHELL ]
Name
Size
Permission
Action
binlog.test
10.5
KB
-rw-r--r--
binlog_cache_stat.test
13.09
KB
-rw-r--r--
binlog_gtid_mode_permissive_se...
1.07
KB
-rw-r--r--
binlog_gtid_mode_set_gtid_next...
1.92
KB
-rw-r--r--
binlog_gtid_next_xa.inc
5.73
KB
-rw-r--r--
binlog_implicit_commit.inc
1.6
KB
-rw-r--r--
binlog_innodb.inc
3.9
KB
-rw-r--r--
binlog_mysqlbinlog_fill.inc
1.76
KB
-rw-r--r--
binlog_mysqlbinlog_row.inc
12.67
KB
-rw-r--r--
binlog_mysqlbinlog_start_stop....
1.81
KB
-rw-r--r--
binlog_row_kill_create_select....
1.82
KB
-rw-r--r--
binlog_truncate.test
1.6
KB
-rw-r--r--
binlog_xa_prepare_connection.i...
903
B
-rw-r--r--
binlog_xa_prepare_disconnect.i...
1.11
KB
-rw-r--r--
binlog_xa_prepared.test
6.05
KB
-rw-r--r--
binlog_xa_prepared_do_and_rest...
9.59
KB
-rw-r--r--
blackhole.test
5.67
KB
-rw-r--r--
ctype_cp932.test
27.77
KB
-rw-r--r--
ctype_cp932_binlog.test
1.25
KB
-rw-r--r--
ctype_ucs_binlog.test
684
B
-rw-r--r--
database.test
2.78
KB
-rw-r--r--
drop_table.test
619
B
-rw-r--r--
drop_temp_table.test
7.9
KB
-rw-r--r--
enforce_gtid_consistency.test
5.4
KB
-rw-r--r--
enforce_gtid_consistency_creat...
2.96
KB
-rw-r--r--
enforce_gtid_consistency_creat...
3.53
KB
-rw-r--r--
enforce_gtid_consistency_state...
9.6
KB
-rw-r--r--
enforce_gtid_consistency_tmp_c...
3.77
KB
-rw-r--r--
enforce_gtid_consistency_tmp_v...
3.35
KB
-rw-r--r--
enforce_gtid_consistency_trx_n...
5.46
KB
-rw-r--r--
enforce_gtid_consistency_trx_n...
3.39
KB
-rw-r--r--
gtid_next_begin_caused_trx.tes...
3.11
KB
-rw-r--r--
gtid_next_single_stmt_trx_roll...
11.01
KB
-rw-r--r--
gtid_next_single_stmt_trx_roll...
10.92
KB
-rw-r--r--
gtid_next_xa.test
3.65
KB
-rw-r--r--
gtid_next_xa_error_simul.test
8.37
KB
-rw-r--r--
implicit.test
567
B
-rw-r--r--
insert_select-binlog.test
1.03
KB
-rw-r--r--
logical_timestamping.inc
5.4
KB
-rw-r--r--
mix_innodb_myisam_binlog.test
15.98
KB
-rw-r--r--
mix_innodb_myisam_side_effects...
6.47
KB
-rw-r--r--
mysqlbinlog_rewrite_db.test
3.47
KB
-rw-r--r--
mysqlbinlog_row_engine.inc
43.86
KB
-rw-r--r--
mysqlbinlog_start_stop_1.inc
1.71
KB
-rw-r--r--
mysqlbinlog_start_stop_2.inc
1.19
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : binlog_cache_stat.test
# Embedded server doesn't support binlog -- source include/not_embedded.inc -- source include/have_innodb.inc # Creating tables --disable_warnings drop table if exists t1, t2; --enable_warnings create table t1 (a int) engine=innodb; create table t2 (a int) engine=myisam; # # This test checks binlog_cache_use and binlog_cache_disk_use when # transactions are committed and after when they are aborted. # # # Checking commit. # --echo **** Preparing the enviroment to check commit and its effect on status variables. --echo **** Expected: binlog_cache_use = 0, binlog_cache_disk_use = 0. --echo **** Expected: binlog_stmt_cache_use = 1, binlog_stmt_cache_disk_use = 0. flush status; let $exp_cache= 0; let $got_cache= query_get_value(show status like "binlog_cache_use", Value, 1); let $exp_disk= 0; let $got_disk= query_get_value(show status like "binlog_cache_disk_use", Value, 1); let $exp_stmt_cache= 1; let $got_stmt_cache= query_get_value(show status like "binlog_stmt_cache_use", Value, 1); let $exp_stmt_disk= 0; let $got_stmt_disk= query_get_value(show status like "binlog_stmt_cache_disk_use", Value, 1); if (`SELECT $got_cache <> $exp_cache || $got_disk <> $exp_disk || $got_stmt_cache <> $exp_stmt_cache || $got_stmt_disk <> $exp_stmt_disk`) { -- echo "Expected: binlog_cache_use = $exp_cache, binlog_cache_disk_use = $exp_disk but got binlog_cache_use = $got_cache, binlog_cache_disk_use = $got_disk" -- echo "Expected: binlog_stmt_cache_use = $exp_stmt_cache, binlog_stmt_cache_disk_use = $exp_stmt_disk but got binlog_stmt_cache_use = $got_stmt_cache, binlog_stmt_cache_disk_use = $got_stmt_disk" -- die } --echo **** Transactional changes which are long enough so they will be flushed to disk... --echo **** Expected: binlog_cache_use = 1, binlog_cache_disk_use = 1. --echo **** Expected: binlog_stmt_cache_use = 1, binlog_stmt_cache_disk_use = 0. let $1=2000; disable_query_log; begin; while ($1) { eval insert into t1 values( $1 ); dec $1; } commit; enable_query_log; let $exp_cache= 1; let $got_cache= query_get_value(show status like "binlog_cache_use", Value, 1); let $exp_disk= 1; let $got_disk= query_get_value(show status like "binlog_cache_disk_use", Value, 1); let $exp_stmt_cache= 1; let $got_stmt_cache= query_get_value(show status like "binlog_stmt_cache_use", Value, 1); let $exp_stmt_disk= 0; let $got_stmt_disk= query_get_value(show status like "binlog_stmt_cache_disk_use", Value, 1); if (`SELECT $got_cache <> $exp_cache || $got_disk <> $exp_disk || $got_stmt_cache <> $exp_stmt_cache || $got_stmt_disk <> $exp_stmt_disk`) { -- echo "Expected: binlog_cache_use = $exp_cache, binlog_cache_disk_use = $exp_disk but got binlog_cache_use = $got_cache, binlog_cache_disk_use = $got_disk" -- echo "Expected: binlog_stmt_cache_use = $exp_stmt_cache, binlog_stmt_cache_disk_use = $exp_stmt_disk but got binlog_stmt_cache_use = $got_stmt_cache, binlog_stmt_cache_disk_use = $got_stmt_disk" -- die } --echo **** Transactional changes which should not be flushed to disk and so should not --echo **** increase either binlog_cache_disk_use or binlog_stmt_cache_disk_use. --echo **** Expected: binlog_cache_use = 2, binlog_cache_disk_use = 1. --echo **** Expected: binlog_stmt_cache_use = 1, binlog_stmt_cache_disk_use = 0. begin; insert into t1 values( 1 ); commit; let $exp_cache= 2; let $got_cache= query_get_value(show status like "binlog_cache_use", Value, 1); let $exp_disk= 1; let $got_disk= query_get_value(show status like "binlog_cache_disk_use", Value, 1); let $exp_stmt_cache= 1; let $got_stmt_cache= query_get_value(show status like "binlog_stmt_cache_use", Value, 1); let $exp_stmt_disk= 0; let $got_stmt_disk= query_get_value(show status like "binlog_stmt_cache_disk_use", Value, 1); if (`SELECT $got_cache <> $exp_cache || $got_disk <> $exp_disk || $got_stmt_cache <> $exp_stmt_cache || $got_stmt_disk <> $exp_stmt_disk`) { -- echo "Expected: binlog_cache_use = $exp_cache, binlog_cache_disk_use = $exp_disk but got binlog_cache_use = $got_cache, binlog_cache_disk_use = $got_disk" -- echo "Expected: binlog_stmt_cache_use = $exp_stmt_cache, binlog_stmt_cache_disk_use = $exp_stmt_disk but got binlog_stmt_cache_use = $got_stmt_cache, binlog_stmt_cache_disk_use = $got_stmt_disk" -- die } --echo **** Non-Transactional changes which should not be flushed to disk and so should not --echo **** increase either binlog_cache_disk_use or binlog_stmt_cache_disk_use. --echo **** Expected: binlog_cache_use = 2, binlog_cache_disk_use = 1. --echo **** Expected: binlog_stmt_cache_use = 2, binlog_stmt_cache_disk_use = 0. begin; insert into t2 values( 1 ); commit; let $exp_cache= 2; let $got_cache= query_get_value(show status like "binlog_cache_use", Value, 1); let $exp_disk= 1; let $got_disk= query_get_value(show status like "binlog_cache_disk_use", Value, 1); let $exp_stmt_cache= 2; let $got_stmt_cache= query_get_value(show status like "binlog_stmt_cache_use", Value, 1); let $exp_stmt_disk= 0; let $got_stmt_disk= query_get_value(show status like "binlog_stmt_cache_disk_use", Value, 1); if (`SELECT $got_cache <> $exp_cache || $got_disk <> $exp_disk || $got_stmt_cache <> $exp_stmt_cache || $got_stmt_disk <> $exp_stmt_disk`) { -- echo "Expected: binlog_cache_use = $exp_cache, binlog_cache_disk_use = $exp_disk but got binlog_cache_use = $got_cache, binlog_cache_disk_use = $got_disk" -- echo "Expected: binlog_stmt_cache_use = $exp_stmt_cache, binlog_stmt_cache_disk_use = $exp_stmt_disk but got binlog_stmt_cache_use = $got_stmt_cache, binlog_stmt_cache_disk_use = $got_stmt_disk" -- die } --echo **** Mixed changes which should not be flushed to disk and so should not --echo **** increase either binlog_cache_disk_use or binlog_stmt_cache_disk_use. --echo **** Expected: binlog_cache_use = 3, binlog_cache_disk_use = 1. --echo **** Expected: binlog_stmt_cache_use = 3, binlog_stmt_cache_disk_use = 0. begin; insert into t1 values( 1 ); insert into t2 values( 1 ); commit; let $exp_cache= 3; let $got_cache= query_get_value(show status like "binlog_cache_use", Value, 1); let $exp_disk= 1; let $got_disk= query_get_value(show status like "binlog_cache_disk_use", Value, 1); let $exp_stmt_cache= 3; let $got_stmt_cache= query_get_value(show status like "binlog_stmt_cache_use", Value, 1); let $exp_stmt_disk= 0; let $got_stmt_disk= query_get_value(show status like "binlog_stmt_cache_disk_use", Value, 1); if (`SELECT $got_cache <> $exp_cache || $got_disk <> $exp_disk || $got_stmt_cache <> $exp_stmt_cache || $got_stmt_disk <> $exp_stmt_disk`) { -- echo "Expected: binlog_cache_use = $exp_cache, binlog_cache_disk_use = $exp_disk but got binlog_cache_use = $got_cache, binlog_cache_disk_use = $got_disk" -- echo "Expected: binlog_stmt_cache_use = $exp_stmt_cache, binlog_stmt_cache_disk_use = $exp_stmt_disk but got binlog_stmt_cache_use = $got_stmt_cache, binlog_stmt_cache_disk_use = $got_stmt_disk" -- die } # # Checking abort. # --echo **** Preparing the enviroment to check abort and its effect on the status variables. --echo **** Expected: binlog_cache_use = 0, binlog_cache_disk_use = 0. --echo **** Expected: binlog_stmt_cache_use = 1, binlog_stmt_cache_disk_use = 0. flush status; let $exp_cache= 0; let $got_cache= query_get_value(show status like "binlog_cache_use", Value, 1); let $exp_disk= 0; let $got_disk= query_get_value(show status like "binlog_cache_disk_use", Value, 1); let $exp_stmt_cache= 1; let $got_stmt_cache= query_get_value(show status like "binlog_stmt_cache_use", Value, 1); let $exp_stmt_disk= 0; let $got_stmt_disk= query_get_value(show status like "binlog_stmt_cache_disk_use", Value, 1); if (`SELECT $got_cache <> $exp_cache || $got_disk <> $exp_disk || $got_stmt_cache <> $exp_stmt_cache || $got_stmt_disk <> $exp_stmt_disk`) { -- echo "Expected: binlog_cache_use = $exp_cache, binlog_cache_disk_use = $exp_disk but got binlog_cache_use = $got_cache, binlog_cache_disk_use = $got_disk" -- echo "Expected: binlog_stmt_cache_use = $exp_stmt_cache, binlog_stmt_cache_disk_use = $exp_stmt_disk but got binlog_stmt_cache_use = $got_stmt_cache, binlog_stmt_cache_disk_use = $got_stmt_disk" -- die } --echo **** Transactional changes which are long enough so they will be flushed to disk... --echo **** Expected: binlog_cache_use = 1, binlog_cache_disk_use = 1. --echo **** Expected: binlog_stmt_cache_use = 1, binlog_stmt_cache_disk_use = 0. let $1=2000; disable_query_log; begin; while ($1) { eval insert into t1 values( $1 ); dec $1; } rollback; enable_query_log; let $exp_cache= 1; let $got_cache= query_get_value(show status like "binlog_cache_use", Value, 1); let $exp_disk= 1; let $got_disk= query_get_value(show status like "binlog_cache_disk_use", Value, 1); let $exp_stmt_cache= 1; let $got_stmt_cache= query_get_value(show status like "binlog_stmt_cache_use", Value, 1); let $exp_stmt_disk= 0; let $got_stmt_disk= query_get_value(show status like "binlog_stmt_cache_disk_use", Value, 1); if (`SELECT $got_cache <> $exp_cache || $got_disk <> $exp_disk || $got_stmt_cache <> $exp_stmt_cache || $got_stmt_disk <> $exp_stmt_disk`) { -- echo "Expected: binlog_cache_use = $exp_cache, binlog_cache_disk_use = $exp_disk but got binlog_cache_use = $got_cache, binlog_cache_disk_use = $got_disk" -- echo "Expected: binlog_stmt_cache_use = $exp_stmt_cache, binlog_stmt_cache_disk_use = $exp_stmt_disk but got binlog_stmt_cache_use = $got_stmt_cache, binlog_stmt_cache_disk_use = $got_stmt_disk" -- die } --echo **** Transactional changes which should not be flushed to disk and so should not --echo **** increase either binlog_cache_disk_use or binlog_stmt_cache_disk_use. --echo **** Expected: binlog_cache_use = 2, binlog_cache_disk_use = 1. --echo **** Expected: binlog_stmt_cache_use = 1, binlog_stmt_cache_disk_use = 0. begin; insert into t1 values( 1 ); rollback; let $exp_cache= 2; let $got_cache= query_get_value(show status like "binlog_cache_use", Value, 1); let $exp_disk= 1; let $got_disk= query_get_value(show status like "binlog_cache_disk_use", Value, 1); let $exp_stmt_cache= 1; let $got_stmt_cache= query_get_value(show status like "binlog_stmt_cache_use", Value, 1); let $exp_stmt_disk= 0; let $got_stmt_disk= query_get_value(show status like "binlog_stmt_cache_disk_use", Value, 1); if (`SELECT $got_cache <> $exp_cache || $got_disk <> $exp_disk || $got_stmt_cache <> $exp_stmt_cache || $got_stmt_disk <> $exp_stmt_disk`) { -- echo "Expected: binlog_cache_use = $exp_cache, binlog_cache_disk_use = $exp_disk but got binlog_cache_use = $got_cache, binlog_cache_disk_use = $got_disk" -- echo "Expected: binlog_stmt_cache_use = $exp_stmt_cache, binlog_stmt_cache_disk_use = $exp_stmt_disk but got binlog_stmt_cache_use = $got_stmt_cache, binlog_stmt_cache_disk_use = $got_stmt_disk" -- die } --echo **** Non-Transactional changes which should not be flushed to disk and so should not --echo **** increase either binlog_cache_disk_use or binlog_stmt_cache_disk_use. --echo **** Expected: binlog_cache_use = 2, binlog_cache_disk_use = 1. --echo **** Expected: binlog_stmt_cache_use = 2, binlog_stmt_cache_disk_use = 0. begin; insert into t2 values( 1 ); rollback; let $exp_cache= 2; let $got_cache= query_get_value(show status like "binlog_cache_use", Value, 1); let $exp_disk= 1; let $got_disk= query_get_value(show status like "binlog_cache_disk_use", Value, 1); let $exp_stmt_cache= 2; let $got_stmt_cache= query_get_value(show status like "binlog_stmt_cache_use", Value, 1); let $exp_stmt_disk= 0; let $got_stmt_disk= query_get_value(show status like "binlog_stmt_cache_disk_use", Value, 1); if (`SELECT $got_cache <> $exp_cache || $got_disk <> $exp_disk || $got_stmt_cache <> $exp_stmt_cache || $got_stmt_disk <> $exp_stmt_disk`) { -- echo "Expected: binlog_cache_use = $exp_cache, binlog_cache_disk_use = $exp_disk but got binlog_cache_use = $got_cache, binlog_cache_disk_use = $got_disk" -- echo "Expected: binlog_stmt_cache_use = $exp_stmt_cache, binlog_stmt_cache_disk_use = $exp_stmt_disk but got binlog_stmt_cache_use = $got_stmt_cache, binlog_stmt_cache_disk_use = $got_stmt_disk" -- die } --echo **** Mixed changes which should not be flushed to disk and so should not --echo **** increase either binlog_cache_disk_use or binlog_stmt_cache_disk_use. --echo **** Expected: binlog_cache_use = 3, binlog_cache_disk_use = 1. --echo **** Expected: binlog_stmt_cache_use = 3, binlog_stmt_cache_disk_use = 0. begin; insert into t1 values( 1 ); insert into t2 values( 1 ); rollback; let $exp_cache= 3; let $got_cache= query_get_value(show status like "binlog_cache_use", Value, 1); let $exp_disk= 1; let $got_disk= query_get_value(show status like "binlog_cache_disk_use", Value, 1); let $exp_stmt_cache= 3; let $got_stmt_cache= query_get_value(show status like "binlog_stmt_cache_use", Value, 1); let $exp_stmt_disk= 0; let $got_stmt_disk= query_get_value(show status like "binlog_stmt_cache_disk_use", Value, 1); if (`SELECT $got_cache <> $exp_cache || $got_disk <> $exp_disk || $got_stmt_cache <> $exp_stmt_cache || $got_stmt_disk <> $exp_stmt_disk`) { -- echo "Expected: binlog_cache_use = $exp_cache, binlog_cache_disk_use = $exp_disk but got binlog_cache_use = $got_cache, binlog_cache_disk_use = $got_disk" -- echo "Expected: binlog_stmt_cache_use = $exp_stmt_cache, binlog_stmt_cache_disk_use = $exp_stmt_disk but got binlog_stmt_cache_use = $got_stmt_cache, binlog_stmt_cache_disk_use = $got_stmt_disk" -- die } drop table t1, t2;
Close