mysql cannot delete or update a parent row
snippet in sql

mysql cannot delete or update a parent row

user2166

SET FOREIGN_KEY_CHECKS=0; -- to disable them
SET FOREIGN_KEY_CHECKS=1; -- to re-enable them