I\'m trying to delete 267 records out of about 40 million. The query looks like:
delete from pricedata where pricedate > \'20120413\'
p
What worked: changing innodb_buffer_pool_size to 256M (see comments under Quassnoi's original comment).