コマンド ラインでは、これにより table1 が正常に更新されます。
pt-table-sync --execute h=host1,D=db1,t=table1 h=host2,D=db2
ただし、複数のテーブルを更新したい場合、どのように記述すればよいかわかりません。これは table1 のみを更新し、他のテーブルは無視します。
pt-table-sync --execute h=host1,D=db1,t=table1,table2,table3 h=host2,D=db2
そして、これは私にエラーを与えます:
pt-table-sync --execute h=host1,D=db1 --tables table1,table2,table3 h=host2,D=db2
「-tables」をリストする方法の例は誰にもあります...リスト内のすべてのテーブルを正常に更新できますか?