I have a table that is in InnoDB engine, quite a simple one with 25000 rows. When I do a simple ALTER, it runs for almost 10 minutes:
mysql> ALTER TABLE `quote_followups_istvan`
ADD `customer_ip2` VARCHAR(20) NOT NULL DEFAULT '' AFTER `comment`;
Query OK, 0 rows affected (10 min 52.82 sec) Records: 0 Duplicates: 0 Warnings: 0
But when I change it's engine to MyISAM, I get this:
mysql> alter table quote_followups_istvan engine="MyISAM";
Query OK, 25053 rows affected (0.56 sec) Records: 25053 Duplicates: 0 Warnings: 0
mysql> ALTER TABLE `quote_followups_istvan`
ADD `customer_ip3` VARCHAR(20) NOT NULL DEFAULT '' AFTER `comment`;
Query OK, 25053 rows affected (0.37 sec) Records: 25053 Duplicates: 0 Warnings: 0
So 10minutes vs 0.37s....
What amd I missing here?