pt-online-schema-change --user=[db_user] --password=[db_passwd] --host=[db_host] --alter="alert语句" --execute D=[db_name],t=[table_name]  --no-check-replication-filters --recursion-method=none --print --execute --charset=utf8 --critical-load="Threads_running=200" 

  

 

例子:

pt-online-schema-change --user=root --password='123456' --host=10.0.0.100  --alter="ADD COLUMN test_chr2 varchar(30) NULL DEFAULT '' COMMENT '测试添加' AFTER test_chr1;" --execute D=db1,t=tab1  --no-check-replication-filters --recursion-method=none --print --execute --charset=utf8 --critical-load="Threads_running=200" 

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-18
  • 2021-12-01
  • 2022-12-23
  • 2021-10-16
  • 2021-11-18
  • 2021-07-14
  • 2021-07-22
相关资源
相似解决方案