1
by brian
clean slate |
1 |
stop slave;
|
2 |
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
3 |
reset master;
|
|
4 |
reset slave;
|
|
5 |
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
6 |
start slave;
|
|
7 |
CREATE TABLE t1 ( a int ) ENGINE=InnoDB;
|
|
8 |
BEGIN;
|
|
9 |
INSERT INTO t1 VALUES (1);
|
|
10 |
OPTIMIZE TABLE t1;
|
|
11 |
Table Op Msg_type Msg_text
|
|
12 |
test.t1 optimize error Lock wait timeout exceeded; try restarting transaction
|
|
13 |
test.t1 optimize status Operation failed
|
|
14 |
Warnings:
|
|
15 |
Error 1205 Lock wait timeout exceeded; try restarting transaction
|
|
16 |
OPTIMIZE TABLE non_existing;
|
|
17 |
Table Op Msg_type Msg_text
|
|
18 |
test.non_existing optimize Error Table 'test.non_existing' doesn't exist
|
|
19 |
test.non_existing optimize error Corrupt
|
|
20 |
select * from t1;
|
|
21 |
a
|
|
22 |
1
|
|
23 |
commit;
|
|
24 |
drop table t1;
|