dongpao5127 2012-10-13 08:32
浏览 71
已采纳

MyISAM表的BigDump错误

I'm trying to import a a database using BigDump but it is giving me this error:

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.

How can I fix this?


Here is the block in the sql file being imported:

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. Could this be an issue?

  • 写回答

1条回答 默认 最新

  • dtyrxmoj20617 2012-10-13 08:38
    关注

    here is updated sql, I put the comments after ;.

    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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 蓝桥oj3931,请问我错在哪里
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染