From a29934bc32bae3660ccba17899d0283937a668cf Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Tue, 9 Aug 2011 10:44:44 -0600 Subject: [PATCH] Fix pt-online-schema-change docu. --- bin/pt-online-schema-change | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/pt-online-schema-change b/bin/pt-online-schema-change index 42fc5f98..dcf22706 100755 --- a/bin/pt-online-schema-change +++ b/bin/pt-online-schema-change @@ -4713,9 +4713,9 @@ L<"--database"> option. Change the table's engine to InnoDB: - pt-online-schema-change \ - h=127.1,t=db.tbl \ - --alter-table "ALTER TABLE db.tbl ENGINE=InnoDB" \ + pt-online-schema-change \ + h=127.1,t=db.tbl \ + --alter "ENGINE=InnoDB" \ --drop-tmp-table Rebuild but do not alter the table, and keep the temporary table: @@ -4724,10 +4724,10 @@ Rebuild but do not alter the table, and keep the temporary table: Add column to parent table, update child table foreign key constraints: - pt-online-schema-change \ - h=127.1,D=db,t=parent \ - --alter-table 'ALTER TABLE parent ADD COLUMN (foo INT)' \ - --child-tables child1,child2 \ + pt-online-schema-change \ + h=127.1,D=db,t=parent \ + --alter "ADD COLUMN (foo INT)" \ + --child-tables child1,child2 \ --update-foreign-keys-method drop_tmp_table =head1 RISKS