1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
FLUSH STATUS;
SHOW STATUS LIKE 'Handler_write';
Variable_name Value
Handler_write 0
CREATE TABLE t1 (a int);
SHOW STATUS LIKE 'Handler_write';
Variable_name Value
Handler_write 0
INSERT INTO t1 VALUES (1);
SHOW STATUS LIKE 'Handler_write';
Variable_name Value
Handler_write 1
INSERT INTO t1 VALUES (1);
SHOW STATUS LIKE 'Handler_write';
Variable_name Value
Handler_write 2
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
SHOW STATUS LIKE 'Handler_write';
Variable_name Value
Handler_write 7
CREATE TABLE t2 LIKE t1;
SHOW STATUS LIKE 'Handler_write';
Variable_name Value
Handler_write 7
INSERT INTO t2 SELECT * FROM t1;
SHOW STATUS LIKE 'Handler_write';
Variable_name Value
Handler_write 14
begin;
insert into t1 values (42);
rollback;
SHOW STATUS LIKE 'Handler_write';
Variable_name Value
Handler_write 15
DROP TABLE t1, t2;
SHOW STATUS LIKE 'Handler_write';
Variable_name Value
Handler_write 15
FLUSH STATUS;
|