You can disable the foreign keys check using:

SET FOREIGN_KEY_CHECKS=0

And for return back to original state:

SET FOREIGN_KEY_CHECKS=1

Cookies