I'm trying to move a magento shop to my server. Unfortunatly I'm not a backend developer - only CSS, HTML and other frontend stuff. Hopefully someone can give me an advice on what to do.
I got a db dump from an agency which I wanted to import and stops with the error message:
BigDump: Staggered MySQL Dump Importer v0.36b Processing file: 2018-03-27_XXXXXXXXX.sql
Starting from line: 1
Error at the line 385: ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Api Sessions';
Query: CREATE TABLE `api_session` (
`user_id` int(10) unsigned NOT NULL COMMENT 'User id',
`logdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Login date',
`sessid` varchar(40) DEFAULT NULL COMMENT 'Sessioin id',
KEY `IDX_API_SESSION_USER_ID` (`user_id`),
KEY `IDX_API_SESSION_SESSID` (`sessid`),
CONSTRAINT `FK_API_SESSION_USER_ID_API_USER_USER_ID` FOREIGN KEY (`user_id`) REFERENCES `api_user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Api Sessions'
MySQL: Cannot add foreign key constraint
I really have no clue on what to do but I'm willing to learn what to do. Can anyone give me a hint what the problem is?
===============
I managed to import the DB with another Script. I can't offer a solution it just works now.