Disable Foreign Keys in MySQL

Disable check of foreign keys, alter table, and enable them again:

SET foreign_key_checks = 0;
alter table `table_name` drop foreign key `foreign_key_name`;
ALTER TABLE `table_name` DROP `column_name`;
SET foreign_key_checks = 1;