https://www.percona.com/doc/percona-toolkit/2.1/pt-online-schema-change.html

不锁表更改数据库表结构

pt-online-schema-change --user=root --host=127.0.0.1 --ask-pass --execute --statistics --charset=utf8 --recursion-method=none  --alter 'ADD COLUMN `daily_type` SMALLINT NULL' D=hbc,t=price_snapshot

 

--recursion-method=none  告诉不用管主从延迟

--execute 开始执行

--statistics 统计

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-12
  • 2022-12-23
猜你喜欢
  • 2022-03-01
  • 2021-05-16
  • 2022-12-23
  • 2021-12-05
  • 2022-01-19
相关资源
相似解决方案