Fix pt-online-schema-change docu.

This commit is contained in:
Daniel Nichter
2011-08-09 10:44:44 -06:00
parent 6dd2116d81
commit a29934bc32

View File

@@ -4715,7 +4715,7 @@ Change the table's engine to InnoDB:
pt-online-schema-change \ pt-online-schema-change \
h=127.1,t=db.tbl \ h=127.1,t=db.tbl \
--alter-table "ALTER TABLE db.tbl ENGINE=InnoDB" \ --alter "ENGINE=InnoDB" \
--drop-tmp-table --drop-tmp-table
Rebuild but do not alter the table, and keep the temporary table: Rebuild but do not alter the table, and keep the temporary table:
@@ -4726,7 +4726,7 @@ Add column to parent table, update child table foreign key constraints:
pt-online-schema-change \ pt-online-schema-change \
h=127.1,D=db,t=parent \ h=127.1,D=db,t=parent \
--alter-table 'ALTER TABLE parent ADD COLUMN (foo INT)' \ --alter "ADD COLUMN (foo INT)" \
--child-tables child1,child2 \ --child-tables child1,child2 \
--update-foreign-keys-method drop_tmp_table --update-foreign-keys-method drop_tmp_table