Я пытаюсь добавить столбец в таблицу 4M + записей, запущенную на производстве, используя phpmyadmin
Вот что происходит на mysql> SHOW FULL PROCESSLIST;
:
Query | 670 | copy to tmp table | ALTER TABLE `table_name` ADD `new_column` VARCHAR(1) NULL DEFAULT NULL AFTER `other_column`
Sleep | 671 | | NULL
[... And here all inserts attempts to that table are stacking ...]
Он вылетает после 13 минут:
200509 0:44:41 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 71728461312
InnoDB: Doing recovery: scanned up to log sequence number 71733704192
[...]
Как добавить этот столбец ...: (