I exported with phpmyadmin my database with the options disable foreign keys and execute into a single transaction and drop table if exists, but when I want to import the file mysql throw an error:
ERROR 1215 (HY000) at line 35: Cannot add foreign key constraint
I checked the export file and seems to be ok. It starts with:
SET SQL_MODE = "";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET FOREIGN_KEY_CHECKS=0;
SET time_zone = "+00:00";
Mysql version is 5.6
Anyone knows what the problem is?
Thank you.