mysqldump problems with restore error: 'Please DISCARD the tablespace before IMPORT'

前端 未结 4 1544
灰色年华
灰色年华 2020-12-14 07:40

I run a daily backup mysqldump backup of the production database (mysql version 5.1.66):

mysqldump --user=username --password=secret -C -e --create-options -         


        
4条回答
  •  醉话见心
    2020-12-14 08:16

    I found the easiest way to skip this problem was to manually edit phpmyadmin database dump and edit/change the table that had problems to something else than INNODB. I changed the problem table to ENGINE=MyISAM and voila. Import worked.

    CREATE TABLE IF NOT EXISTS `home3_acymailing_tag` (
        `tagid` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
        `name` varchar(250) NOT NULL,
        `userid` int(10) unsigned DEFAULT NULL,
        PRIMARY KEY (`tagid`),
        KEY `useridindex` (`userid`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    

提交回复
热议问题