| 1 |
call mtr.add_suppression("Table 't1' is marked as crashed and should be repaired"); |
| 2 |
drop database if exists mysqltest; |
| 3 |
create database mysqltest; |
| 4 |
connect admin, localhost, root,,mysqltest,,; |
| 5 |
connection default; |
| 6 |
use mysqltest; |
| 7 |
create table t1(a int) engine=aria; |
| 8 |
insert into t1 values(1); |
| 9 |
create table t2 (a int) engine=aria; |
| 10 |
INSERT INTO t2 VALUES (1),(2); |
| 11 |
create table t3 (a int) engine=aria; |
| 12 |
INSERT INTO t3 VALUES (1),(2); |
| 13 |
create table t4 (a int) engine=aria; |
| 14 |
INSERT INTO t4 VALUES (1),(2); |
| 15 |
create table t5 (a int) engine=aria; |
| 16 |
INSERT INTO t5 VALUES (1),(2); |
| 17 |
create table t6 (a int) engine=aria; |
| 18 |
INSERT INTO t6 VALUES (1),(2); |
| 19 |
flush tables; |
| 20 |
create_rename_lsn has non-magic value |
| 21 |
connection default; |
| 22 |
connection admin; |
| 23 |
* shut down mysqld, removed logs, restarted it |
| 24 |
connection default; |
| 25 |
select * from t1; |
| 26 |
a |
| 27 |
1 |
| 28 |
Warnings: |
| 29 |
Note 1194 Zerofilling moved table ./mysqltest/t1 |
| 30 |
flush table t1; |
| 31 |
Status: changed,sorted index pages,zerofilled |
| 32 |
insert into t1 values(2); |
| 33 |
flush table t1; |
| 34 |
create_rename_lsn has non-magic value |
| 35 |
# |
| 36 |
# BUG#44422 "mysql_upgrade destroys Maria tables?" |
| 37 |
# Check repair and optimize of moved table |
| 38 |
# |
| 39 |
check table t2; |
| 40 |
Table Op Msg_type Msg_text |
| 41 |
mysqltest.t2 check error Table is probably from another system and must be zerofilled or repaired ('REPAIR TABLE table_name') to be usable on this system |
| 42 |
mysqltest.t2 check error Corrupt |
| 43 |
check table t2; |
| 44 |
Table Op Msg_type Msg_text |
| 45 |
mysqltest.t2 check error Table is probably from another system and must be zerofilled or repaired ('REPAIR TABLE table_name') to be usable on this system |
| 46 |
mysqltest.t2 check error Corrupt |
| 47 |
repair table t2; |
| 48 |
Table Op Msg_type Msg_text |
| 49 |
mysqltest.t2 repair info Running zerofill on moved table |
| 50 |
mysqltest.t2 repair status OK |
| 51 |
check table t2; |
| 52 |
Table Op Msg_type Msg_text |
| 53 |
mysqltest.t2 check status OK |
| 54 |
optimize table t3; |
| 55 |
Table Op Msg_type Msg_text |
| 56 |
mysqltest.t3 optimize Note Zerofilling moved table ./mysqltest/t3 |
| 57 |
mysqltest.t3 optimize status OK |
| 58 |
analyze table t4; |
| 59 |
Table Op Msg_type Msg_text |
| 60 |
mysqltest.t4 analyze status Engine-independent statistics collected |
| 61 |
mysqltest.t4 analyze Note Zerofilling moved table ./mysqltest/t4 |
| 62 |
mysqltest.t4 analyze status OK |
| 63 |
repair table t5; |
| 64 |
Table Op Msg_type Msg_text |
| 65 |
mysqltest.t5 repair info Running zerofill on moved table |
| 66 |
mysqltest.t5 repair status OK |
| 67 |
check table t5; |
| 68 |
Table Op Msg_type Msg_text |
| 69 |
mysqltest.t5 check status OK |
| 70 |
repair table t5; |
| 71 |
Table Op Msg_type Msg_text |
| 72 |
mysqltest.t5 repair status OK |
| 73 |
check table t5; |
| 74 |
Table Op Msg_type Msg_text |
| 75 |
mysqltest.t5 check status OK |
| 76 |
select * from t6; |
| 77 |
a |
| 78 |
1 |
| 79 |
2 |
| 80 |
check table t6; |
| 81 |
Table Op Msg_type Msg_text |
| 82 |
mysqltest.t6 check status OK |
| 83 |
drop database mysqltest; |