1
set binlog_format=statement;
3
create database testing_1;
5
create table t1 (a int);
6
create function sf1 (a int) returns int return a+1;
7
create trigger tr1 before insert on t1 for each row insert into t2 values (2*new.a);
8
create procedure sp1 (a int) insert into t1 values(a);
9
drop database testing_1;
10
show binlog events from <binlog_start>;
11
Log_name Pos Event_type Server_id End_log_pos Info
12
master-bin.000001 # Query # # create database testing_1
13
master-bin.000001 # Query # # use `testing_1`; create table t1 (a int)
14
master-bin.000001 # Query # # use `testing_1`; CREATE DEFINER=`root`@`localhost` function sf1 (a int) returns int return a+1
15
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)
16
master-bin.000001 # Query # # use `testing_1`; CREATE DEFINER=`root`@`localhost` procedure sp1 (a int) insert into t1 values(a)
17
master-bin.000001 # Query # # drop database testing_1
18
set binlog_format=mixed;
20
create database testing_1;
22
create table t1 (a int);
23
create function sf1 (a int) returns int return a+1;
24
create trigger tr1 before insert on t1 for each row insert into t2 values (2*new.a);
25
create procedure sp1 (a int) insert into t1 values(a);
26
drop database testing_1;
27
show binlog events from <binlog_start>;
28
Log_name Pos Event_type Server_id End_log_pos Info
29
master-bin.000001 # Query # # create database testing_1
30
master-bin.000001 # Query # # use `testing_1`; create table t1 (a int)
31
master-bin.000001 # Query # # use `testing_1`; CREATE DEFINER=`root`@`localhost` function sf1 (a int) returns int return a+1
32
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)
33
master-bin.000001 # Query # # use `testing_1`; CREATE DEFINER=`root`@`localhost` procedure sp1 (a int) insert into t1 values(a)
34
master-bin.000001 # Query # # drop database testing_1
35
set binlog_format=row;
37
create database testing_1;
39
create table t1 (a int);
40
create function sf1 (a int) returns int return a+1;
41
create trigger tr1 before insert on t1 for each row insert into t2 values (2*new.a);
42
create procedure sp1 (a int) insert into t1 values(a);
43
drop database testing_1;
44
show binlog events from <binlog_start>;
45
Log_name Pos Event_type Server_id End_log_pos Info
46
master-bin.000001 # Query # # create database testing_1
47
master-bin.000001 # Query # # use `testing_1`; create table t1 (a int)
48
master-bin.000001 # Query # # use `testing_1`; CREATE DEFINER=`root`@`localhost` function sf1 (a int) returns int return a+1
49
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)
50
master-bin.000001 # Query # # use `testing_1`; CREATE DEFINER=`root`@`localhost` procedure sp1 (a int) insert into t1 values(a)
51
master-bin.000001 # Query # # drop database testing_1