[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.188.43.85: ~ $
set binlog_format=statement;
reset master;
create database testing_1;
use testing_1;
create table t1 (a int);
create function sf1 (a int) returns int return a+1;
create trigger tr1 before insert on t1 for each row insert into t2 values (2*new.a);
create procedure sp1 (a int) insert into t1 values(a);
drop database testing_1;
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	create database testing_1
master-bin.000001	#	Query	#	#	use `testing_1`; create table t1 (a int)
master-bin.000001	#	Query	#	#	use `testing_1`; CREATE DEFINER=`root`@`localhost` FUNCTION `sf1`(a int) RETURNS int(11)
return a+1
master-bin.000001	#	Query	#	#	use `testing_1`; CREATE DEFINER=`root`@`localhost` trigger tr1 before insert on t1 for each row insert into t2 values (2*new.a)
master-bin.000001	#	Query	#	#	use `testing_1`; CREATE DEFINER=`root`@`localhost` PROCEDURE `sp1`(a int)
insert into t1 values(a)
master-bin.000001	#	Query	#	#	drop database testing_1
use test;
reset master;
create temporary table tt1 (a int);
create table t1 (a int);
insert into t1 values (1);
drop database if exists mysqltest1;
insert into t1 values (1);
drop table tt1, t1;
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	use `test`; create temporary table tt1 (a int)
master-bin.000001	#	Query	#	#	use `test`; create table t1 (a int)
master-bin.000001	#	Query	#	#	BEGIN
master-bin.000001	#	Query	#	#	use `test`; insert into t1 values (1)
master-bin.000001	#	Query	#	#	COMMIT
master-bin.000001	#	Query	#	#	drop database if exists mysqltest1
master-bin.000001	#	Query	#	#	BEGIN
master-bin.000001	#	Query	#	#	use `test`; insert into t1 values (1)
master-bin.000001	#	Query	#	#	COMMIT
master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE `tt1` /* generated by server */
master-bin.000001	#	Query	#	#	use `test`; DROP TABLE `t1` /* generated by server */
FLUSH STATUS;

# 'DROP TABLE IF EXISTS <deleted tables>' is binlogged
# when 'DROP DATABASE' fails and at least one table is deleted
# from the database.
RESET MASTER;
CREATE DATABASE testing_1;
USE testing_1;
CREATE TABLE t1(c1 INT);
CREATE TABLE t2(c1 INT);
# Create a file in the database directory
SELECT 'hello' INTO OUTFILE 'fake_file.FAKE_FILE';

# 'DROP DATABASE' will fail if there is any other file in the the
# database directory
DROP DATABASE testing_1;
ERROR HY000: Error dropping database (can't rmdir './testing_1/', errno: 17)

# Remove the fake file.
# Now we can drop the database.
DROP DATABASE testing_1;
#
# Bug#11765416 58381: FAILED DROP DATABASE CAN BREAK STATEMENT
#              BASED REPLICATION
#
USE test;
DROP DATABASE IF EXISTS db1;
DROP TABLE IF EXISTS t3;
CREATE DATABASE db1;
CREATE TABLE db1.t1 (a INT);
CREATE TABLE db1.t2 (b INT, KEY(b)) engine=innodb;
CREATE TABLE t3 (a INT, KEY (a), FOREIGN KEY(a) REFERENCES db1.t2(b))
engine=innodb;
RESET MASTER;
DROP DATABASE db1;
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails
SHOW TABLES FROM db1;
Tables_in_db1
t2
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	use `db1`; DROP TABLE IF EXISTS `t1`
DROP TABLE t3;
DROP DATABASE db1;
set binlog_format=mixed;
reset master;
create database testing_1;
use testing_1;
create table t1 (a int);
create function sf1 (a int) returns int return a+1;
create trigger tr1 before insert on t1 for each row insert into t2 values (2*new.a);
create procedure sp1 (a int) insert into t1 values(a);
drop database testing_1;
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	create database testing_1
master-bin.000001	#	Query	#	#	use `testing_1`; create table t1 (a int)
master-bin.000001	#	Query	#	#	use `testing_1`; CREATE DEFINER=`root`@`localhost` FUNCTION `sf1`(a int) RETURNS int(11)
return a+1
master-bin.000001	#	Query	#	#	use `testing_1`; CREATE DEFINER=`root`@`localhost` trigger tr1 before insert on t1 for each row insert into t2 values (2*new.a)
master-bin.000001	#	Query	#	#	use `testing_1`; CREATE DEFINER=`root`@`localhost` PROCEDURE `sp1`(a int)
insert into t1 values(a)
master-bin.000001	#	Query	#	#	drop database testing_1
use test;
reset master;
create temporary table tt1 (a int);
create table t1 (a int);
insert into t1 values (1);
drop database if exists mysqltest1;
insert into t1 values (1);
drop table tt1, t1;
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	use `test`; create temporary table tt1 (a int)
master-bin.000001	#	Query	#	#	use `test`; create table t1 (a int)
master-bin.000001	#	Query	#	#	BEGIN
master-bin.000001	#	Query	#	#	use `test`; insert into t1 values (1)
master-bin.000001	#	Query	#	#	COMMIT
master-bin.000001	#	Query	#	#	drop database if exists mysqltest1
master-bin.000001	#	Query	#	#	BEGIN
master-bin.000001	#	Query	#	#	use `test`; insert into t1 values (1)
master-bin.000001	#	Query	#	#	COMMIT
master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE `tt1` /* generated by server */
master-bin.000001	#	Query	#	#	use `test`; DROP TABLE `t1` /* generated by server */
FLUSH STATUS;

# 'DROP TABLE IF EXISTS <deleted tables>' is binlogged
# when 'DROP DATABASE' fails and at least one table is deleted
# from the database.
RESET MASTER;
CREATE DATABASE testing_1;
USE testing_1;
CREATE TABLE t1(c1 INT);
CREATE TABLE t2(c1 INT);
# Create a file in the database directory
SELECT 'hello' INTO OUTFILE 'fake_file.FAKE_FILE';

# 'DROP DATABASE' will fail if there is any other file in the the
# database directory
DROP DATABASE testing_1;
ERROR HY000: Error dropping database (can't rmdir './testing_1/', errno: 17)

# Remove the fake file.
# Now we can drop the database.
DROP DATABASE testing_1;
#
# Bug#11765416 58381: FAILED DROP DATABASE CAN BREAK STATEMENT
#              BASED REPLICATION
#
USE test;
DROP DATABASE IF EXISTS db1;
DROP TABLE IF EXISTS t3;
CREATE DATABASE db1;
CREATE TABLE db1.t1 (a INT);
CREATE TABLE db1.t2 (b INT, KEY(b)) engine=innodb;
CREATE TABLE t3 (a INT, KEY (a), FOREIGN KEY(a) REFERENCES db1.t2(b))
engine=innodb;
RESET MASTER;
DROP DATABASE db1;
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails
SHOW TABLES FROM db1;
Tables_in_db1
t2
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	use `db1`; DROP TABLE IF EXISTS `t1`
DROP TABLE t3;
DROP DATABASE db1;
set binlog_format=row;
reset master;
create database testing_1;
use testing_1;
create table t1 (a int);
create function sf1 (a int) returns int return a+1;
create trigger tr1 before insert on t1 for each row insert into t2 values (2*new.a);
create procedure sp1 (a int) insert into t1 values(a);
drop database testing_1;
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	create database testing_1
master-bin.000001	#	Query	#	#	use `testing_1`; create table t1 (a int)
master-bin.000001	#	Query	#	#	use `testing_1`; CREATE DEFINER=`root`@`localhost` FUNCTION `sf1`(a int) RETURNS int(11)
return a+1
master-bin.000001	#	Query	#	#	use `testing_1`; CREATE DEFINER=`root`@`localhost` trigger tr1 before insert on t1 for each row insert into t2 values (2*new.a)
master-bin.000001	#	Query	#	#	use `testing_1`; CREATE DEFINER=`root`@`localhost` PROCEDURE `sp1`(a int)
insert into t1 values(a)
master-bin.000001	#	Query	#	#	drop database testing_1
use test;
reset master;
create temporary table tt1 (a int);
create table t1 (a int);
insert into t1 values (1);
drop database if exists mysqltest1;
insert into t1 values (1);
drop table tt1, t1;
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	use `test`; create table t1 (a int)
master-bin.000001	#	Query	#	#	BEGIN
master-bin.000001	#	Table_map	#	#	table_id: # (test.t1)
master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
master-bin.000001	#	Query	#	#	COMMIT
master-bin.000001	#	Query	#	#	drop database if exists mysqltest1
master-bin.000001	#	Query	#	#	BEGIN
master-bin.000001	#	Table_map	#	#	table_id: # (test.t1)
master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
master-bin.000001	#	Query	#	#	COMMIT
master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS `tt1` /* generated by server */
master-bin.000001	#	Query	#	#	use `test`; DROP TABLE `t1` /* generated by server */
FLUSH STATUS;

# 'DROP TABLE IF EXISTS <deleted tables>' is binlogged
# when 'DROP DATABASE' fails and at least one table is deleted
# from the database.
RESET MASTER;
CREATE DATABASE testing_1;
USE testing_1;
CREATE TABLE t1(c1 INT);
CREATE TABLE t2(c1 INT);
# Create a file in the database directory
SELECT 'hello' INTO OUTFILE 'fake_file.FAKE_FILE';

# 'DROP DATABASE' will fail if there is any other file in the the
# database directory
DROP DATABASE testing_1;
ERROR HY000: Error dropping database (can't rmdir './testing_1/', errno: 17)

# Remove the fake file.
# Now we can drop the database.
DROP DATABASE testing_1;
#
# Bug#11765416 58381: FAILED DROP DATABASE CAN BREAK STATEMENT
#              BASED REPLICATION
#
USE test;
DROP DATABASE IF EXISTS db1;
DROP TABLE IF EXISTS t3;
CREATE DATABASE db1;
CREATE TABLE db1.t1 (a INT);
CREATE TABLE db1.t2 (b INT, KEY(b)) engine=innodb;
CREATE TABLE t3 (a INT, KEY (a), FOREIGN KEY(a) REFERENCES db1.t2(b))
engine=innodb;
RESET MASTER;
DROP DATABASE db1;
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails
SHOW TABLES FROM db1;
Tables_in_db1
t2
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	use `db1`; DROP TABLE IF EXISTS `t1`
DROP TABLE t3;
DROP DATABASE db1;
show databases;
Database
information_schema
mtr
mysql
performance_schema
test

Filemanager

Name Type Size Permission Actions
binlog_base64_flag.result File 3.81 KB 0644
binlog_bug23533.result File 486 B 0644
binlog_bug36391.result File 143 B 0644
binlog_cache_write_failure.result File 2.39 KB 0644
binlog_checksum.result File 698 B 0644
binlog_crash_safe_master_checksum.result File 1.15 KB 0644
binlog_database.result File 9.67 KB 0644
binlog_delete_and_flush_index.result File 1.73 KB 0644
binlog_dmls_on_tmp_tables_readonly.result File 1.37 KB 0644
binlog_drop_if_exists.result File 5.35 KB 0644
binlog_enforce_gtid_consistency.result File 5.09 KB 0644
binlog_error_action.result File 7.55 KB 0644
binlog_format_switch_in_tmp_table.result File 2.65 KB 0644
binlog_grant.result File 1 KB 0644
binlog_gtid_cache.result File 5 B 0644
binlog_gtid_errors.result File 8.71 KB 0644
binlog_gtid_exhausted.result File 1.1 KB 0644
binlog_gtid_implicit_commit.result File 12.4 KB 0644
binlog_gtid_innodb.result File 6.31 KB 0644
binlog_gtid_mysqlbinlog_row.result File 217.54 KB 0644
binlog_gtid_mysqlbinlog_row_innodb.result File 244.09 KB 0644
binlog_gtid_mysqlbinlog_row_myisam.result File 245.4 KB 0644
binlog_gtid_mysqlbinlog_start_stop.result File 53.15 KB 0644
binlog_gtid_row_ctype_ucs.result File 1.47 KB 0644
binlog_gtid_simple_recovery.result File 1.82 KB 0644
binlog_gtid_stm_ctype_ucs.result File 1.64 KB 0644
binlog_gtid_utils.result File 11.43 KB 0644
binlog_hexdump.result File 6.52 KB 0644
binlog_implicit_commit.result File 11.05 KB 0644
binlog_incident.result File 181 B 0644
binlog_incident_ignore.result File 181 B 0644
binlog_index.result File 11.43 KB 0644
binlog_innodb.result File 6.21 KB 0644
binlog_innodb_row.result File 3 KB 0644
binlog_killed.result File 3.74 KB 0644
binlog_killed_simulate.result File 1.19 KB 0644
binlog_max_extension.result File 378 B 0644
binlog_mixed_cache_stat.result File 3.2 KB 0644
binlog_mixed_load_data.result File 420 B 0644
binlog_multi_engine.result File 5.16 KB 0644
binlog_mysqlbinlog-cp932.result File 358 B 0644
binlog_mysqlbinlog_base64.result File 1.71 KB 0644
binlog_mysqlbinlog_concat.result File 488 B 0644
binlog_mysqlbinlog_filter.result File 1.48 KB 0644
binlog_mysqlbinlog_raw.result File 832 B 0644
binlog_mysqlbinlog_row.result File 178.43 KB 0644
binlog_mysqlbinlog_row_innodb.result File 240.22 KB 0644
binlog_mysqlbinlog_row_myisam.result File 241.53 KB 0644
binlog_mysqlbinlog_row_trans.result File 15.47 KB 0644
binlog_mysqlbinlog_start_stop.result File 45.55 KB 0644
binlog_mysqlbinlog_start_stop_slave_server_id.result File 3.94 KB 0644
binlog_old_versions.result File 1.59 KB 0644
binlog_query_filter_rules.result File 187 B 0644
binlog_reset_master.result File 14 B 0644
binlog_rewrite.result File 6.65 KB 0644
binlog_rotate_bgc_sync.result File 1.82 KB 0644
binlog_row_binlog.result File 42.98 KB 0644
binlog_row_cache_stat.result File 3.2 KB 0644
binlog_row_ctype_cp932.result File 87.42 KB 0644
binlog_row_ctype_ucs.result File 1.36 KB 0644
binlog_row_drop_tbl.result File 567 B 0644
binlog_row_drop_tmp_tbl.result File 3.44 KB 0644
binlog_row_insert_select.result File 758 B 0644
binlog_row_mix_innodb_myisam.result File 30.4 KB 0644
binlog_row_mysqlbinlog_db_filter.result File 1.5 KB 0644
binlog_row_mysqlbinlog_verbose.result File 2.84 KB 0644
binlog_row_query_log_events.result File 442 B 0644
binlog_server_id.result File 459 B 0644
binlog_server_start_options.result File 52 B 0644
binlog_sf.result File 1.67 KB 0644
binlog_spurious_ddl_errors.result File 2.97 KB 0644
binlog_sql_mode.result File 3.46 KB 0644
binlog_start_comment.result File 371 B 0644
binlog_statement_insert_delayed.result File 2.78 KB 0644
binlog_stm_binlog.result File 41.24 KB 0644
binlog_stm_blackhole.result File 7.89 KB 0644
binlog_stm_cache_stat.result File 3.2 KB 0644
binlog_stm_ctype_cp932.result File 87.42 KB 0644
binlog_stm_ctype_ucs.result File 1.53 KB 0644
binlog_stm_do_db.result File 2.41 KB 0644
binlog_stm_drop_tbl.result File 513 B 0644
binlog_stm_drop_tmp_tbl.result File 4.16 KB 0644
binlog_stm_insert_select.result File 711 B 0644
binlog_stm_mix_innodb_myisam.result File 35.93 KB 0644
binlog_stm_ps.result File 1.16 KB 0644
binlog_stm_row.result File 3.07 KB 0644
binlog_stm_unsafe_warning.result File 4.76 KB 0644
binlog_stm_user_variables.result File 5.31 KB 0644
binlog_switch_inside_trans.result File 7.97 KB 0644
binlog_tmp_table.result File 905 B 0644
binlog_truncate_kill.result File 1.23 KB 0644
binlog_truncate_myisam.result File 2.97 KB 0644
binlog_trx_empty_assertions.result File 884 B 0644
binlog_unsafe.result File 194.55 KB 0644
binlog_unsafe_stmt_capable_engine.result File 186.33 KB 0644
binlog_use_gtid_skip.result File 311 B 0644
binlog_variables_log_bin.result File 319 B 0644
binlog_variables_log_bin_index.result File 313 B 0644
binlog_variables_relay_log.result File 475 B 0644
binlog_variables_relay_log_index.result File 469 B 0644
binlog_write_error.result File 2.47 KB 0644
binlog_xa_handling.result File 280 B 0644
show_binlog_events_no_lock.result File 324 B 0644