简体   繁体   English

MyISAM表的BigDump错误

[英]BigDump Error with MyISAM table

I'm trying to import aa database using BigDump but it is giving me this error: 我正在尝试使用BigDump导入数据库,但这给了我这个错误:

Error at the line 238: ) ENGINE=MyISAM */;
Query: `username` varchar(64),
`name` varchar(255),
`entityRef` int(11),
`Date` date,
`contactName` varchar(255),
`email` varchar(255),
`tel` varchar(128),
`Qualifies` varchar(3)
) ENGINE=MyISAM */
MySQL: You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near
'`username` varchar(64), `name` varchar(255), `entityRef` int(11), `Date` d' at line 1

I am totally stumped with this one as I have used BigDump before with no problems. 我对此感到非常困惑,因为我之前使用BigDump都没有问题。

How can I fix this? 我怎样才能解决这个问题?


Here is the block in the sql file being imported: 这是要导入的sql文件中的块:

DROP TABLE IF EXISTS `_funnel`;
/*!50001 DROP VIEW IF EXISTS `_funnel`*/;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE TABLE `_funnel` (
`username` varchar(64),
`name` varchar(255),
`entityRef` int(11),
`Date` date,
`contactName` varchar(255),
`email` varchar(255),
`tel` varchar(128),
`Qualifies` varchar(3)
) ENGINE=MyISAM */;
SET character_set_client = @saved_cs_client;

Also I have a few views in my exported SQL file. 我导出的SQL文件中也有一些视图。 Could this be an issue? 这可能是个问题吗?

here is updated sql, I put the comments after ;. 这是更新的sql,我在;之后加上注释。

DROP TABLE IF EXISTS `_funnel`;
/*!50001 DROP VIEW IF EXISTS `_funnel`;*/
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE TABLE `_funnel` (
`username` varchar(64),
`name` varchar(255),
`entityRef` int(11),
`Date` date,
`contactName` varchar(255),
`email` varchar(255),
`tel` varchar(128),
`Qualifies` varchar(3)
) ENGINE=MyISAM ;*/
SET character_set_client = @saved_cs_client;

But you should create the table I think. 但是您应该创建我认为的表。 Why you are putting comments in creation statement 为什么要在创建语句中添加评论

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM