Ошибка mysql: "Cannot delete or update a parent row: a foreign key constraint fails".
Материал из Umicms
Версия от 21:49, 4 июня 2013; Mad grant (обсуждение | вклад)
Ошибка mysql: "Cannot delete or update a parent row: a foreign key constraint fails".
Добавьте в дамп две строчки:
SET AUTOCOMMIT=0;
SET FOREIGN_KEY_CHECKS=0;