I\'m trying to speed up bulk insert in an InnoDB table by temporary disabling its indexes:
ALTER TABLE mytable DISABLE KEYS;
But it gives
Have you tried the following?
SET autocommit=0; SET unique_checks=0; SET foreign_key_checks=0;
From the MySQL References https://dev.mysql.com/doc/refman/5.5/en/optimizing-innodb-bulk-data-loading.html
See Section "Bulk Data Loading Tips"