Cancel foreign key constraint: SET FOREIGN_KEY_CHECKS=0 Enable foreign key constraint: SET FOREIGN_KEY_CHECKS=1