Delete a row and ignore foreign key constraint check in MySQL

Delete a row ignoring foreign key constraint in MySQL

Sometimes, you are in a case where you want to disable the foreign key check constraint to delete a row or import something to your database but you don't know how.

So here is the solution but do it if only you know what you are doing because it can mess up all your database after.

SET foreign_key_checks = 0;