HeidiSQL 9.4.0.5169
I export my database to a single non-compressed SQL file.
When I try to re-import without any changes I get errors. Examining the code I find this:
-- Dumping structure for table capertime_emotivesoftware.emo_models
DROP TABLE IF EXISTS `emo_models`;
CREATE TABLE IF NOT EXISTS `emo_models` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`WebsiteID` int(11) NOT NULL,
`ManufacturerID` int(11) NOT NULL,
`ModelID` int(11) NOT NULL,
`Name` varchar(50) NOT NULL,
PRIMARY KEY (`ID`),
KEY `FK_emo_models_sys_websites` (`WebsiteID`),
CONSTRAINT `FK_emo_models_emo_manufacturers` FOREIGN KEY (`ManufacturerID`) REFERENCES `emo_manufacturers` (`ManufacturerID`),
CONSTRAINT `FK_emo_models_sys_websites` FOREIGN KEY (`WebsiteID`) REFERENCES `sys_websites` (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=587 DEFAULT CHARSET=utf8;
It complains there is an issue with creating foreign keys. Looking at the above SQL there appears to be a KEY... line missing for one of the foreign keys.
I don't really have any idea why this line would be missing from the export though.
I hope this helps.
Chris.