2010-09-12 18:40:01 +02:00
|
|
|
set global storage_engine=aria;
|
|
|
|
set session storage_engine=aria;
|
2007-07-01 15:20:57 +02:00
|
|
|
drop table if exists t1;
|
|
|
|
SET SQL_WARNINGS=1;
|
|
|
|
RESET MASTER;
|
|
|
|
set binlog_format=statement;
|
|
|
|
CREATE TABLE t1 (a int primary key);
|
|
|
|
insert t1 values (1),(2),(3);
|
|
|
|
insert t1 values (4),(2),(5);
|
|
|
|
ERROR 23000: Duplicate entry '2' for key 'PRIMARY'
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
4
|
2011-01-10 14:53:09 +01:00
|
|
|
SHOW BINLOG EVENTS FROM <start_pos>;
|
2007-07-01 15:20:57 +02:00
|
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
2013-03-26 10:35:34 +01:00
|
|
|
master-bin.000001 # Gtid_list 1 # []
|
2012-06-22 11:46:28 +02:00
|
|
|
master-bin.000001 # Binlog_checkpoint 1 # master-bin.000001
|
2013-03-26 10:35:34 +01:00
|
|
|
master-bin.000001 # Gtid 1 # GTID 0-1-1
|
2011-01-10 14:53:09 +01:00
|
|
|
master-bin.000001 # Query 1 # use `test`; CREATE TABLE t1 (a int primary key)
|
2013-03-26 10:35:34 +01:00
|
|
|
master-bin.000001 # Gtid 1 # BEGIN GTID 0-1-2
|
2011-01-10 14:53:09 +01:00
|
|
|
master-bin.000001 # Query 1 # use `test`; insert t1 values (1),(2),(3)
|
2011-10-19 21:45:18 +02:00
|
|
|
master-bin.000001 # Query 1 # COMMIT
|
2013-03-26 10:35:34 +01:00
|
|
|
master-bin.000001 # Gtid 1 # BEGIN GTID 0-1-3
|
2011-01-10 14:53:09 +01:00
|
|
|
master-bin.000001 # Query 1 # use `test`; insert t1 values (4),(2),(5)
|
2011-10-19 21:45:18 +02:00
|
|
|
master-bin.000001 # Query 1 # COMMIT
|
2007-07-01 15:20:57 +02:00
|
|
|
drop table t1;
|
|
|
|
set binlog_format=default;
|