| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
connection master; |
| 4 |
set binlog_alter_two_phase = ON; |
| 5 |
connection master; |
| 6 |
CREATE TABLE t1 (i int) engine=innodb; |
| 7 |
CREATE TABLE t2 (i int) engine=innodb; |
| 8 |
ALTER TABLE t1 DROP CONSTRAINT IF EXISTS y; |
| 9 |
Warnings: |
| 10 |
Note 1091 Can't DROP CONSTRAINT `y`; check that it exists |
| 11 |
OPTIMIZE TABLE t2; |
| 12 |
Table Op Msg_type Msg_text |
| 13 |
test.t2 optimize note Table does not support optimize, doing recreate + analyze instead |
| 14 |
test.t2 optimize status OK |
| 15 |
connection slave; |
| 16 |
connection master; |
| 17 |
drop table t1,t2; |
| 18 |
include/rpl_end.inc |