1
drop table if exists t1;
2
set global myisam_data_pointer_size=2;
3
CREATE TABLE t1 (a int auto_increment primary key not null, b longtext) ENGINE=MyISAM;
4
DELETE FROM t1 WHERE a=1 or a=5;
5
INSERT INTO t1 SET b=repeat('a',600);
6
ERROR HY000: The table 't1' is full
7
CHECK TABLE t1 EXTENDED;
8
Table Op Msg_type Msg_text
9
test.t1 check warning Datafile is almost full, 65448 of 65534 used
10
test.t1 check status OK
11
UPDATE t1 SET b=repeat('a', 800) where a=10;
12
ERROR HY000: The table 't1' is full
13
CHECK TABLE t1 EXTENDED;
14
Table Op Msg_type Msg_text
15
test.t1 check warning Datafile is almost full, 65448 of 65534 used
16
test.t1 check status OK
17
INSERT INTO t1 SET b=repeat('a',400);
18
CHECK TABLE t1 EXTENDED;
19
Table Op Msg_type Msg_text
20
test.t1 check warning Datafile is almost full, 65448 of 65534 used
21
test.t1 check status OK
22
DELETE FROM t1 WHERE a=2 or a=6;
23
UPDATE t1 SET b=repeat('a', 600) where a=11;
24
CHECK TABLE t1 EXTENDED;
25
Table Op Msg_type Msg_text
26
test.t1 check warning Datafile is almost full, 65448 of 65534 used
27
test.t1 check status OK
29
set global myisam_data_pointer_size=default;