简体   繁体   中英

Drop a column from a Big Table

I need to drop a column from a big table (about 20 GB) in a production MySQL database, but I don't want the MySQL server to hang or make a risk on production database.

This table is using the InnoDB engine and it contains around 10,000,000 records.

The best possible way as far as I know, is to use a MASTER-MASTER setup in mysql

You can modify MASTER1 first, and just use MASTER2 in production. Then you switch over and do the same.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM