Magento. 1452 – Cannot add or update a child row: a foreign key constraint fails

You can do this by opening the dump with a text editor and pasting the following line at the beginning of the file:

SET foreign_key_checks=0;

Leave a Reply

Your email address will not be published.