Percona Toolkit的使用

By | 2025-11-27

https://docs.percona.com/percona-toolkit/index.html

安装percona-toolkit
sudo apt-get install percona-toolkit

更改MySQL字段类型
pt-online-schema-change --ask-pass --execute --alter "MODIFY COLUMN ipbin VARBINARY(16) NOT NULL" D=click_boost,t=boost_logs

Leave a Reply

Your email address will not be published. Required fields are marked *