turn on foreign keys check mysql
snippet in sql

turn on foreign keys check mysql

user5174

SET FOREIGN_KEY_CHECKS=0;