mysql 5.0.51b 导入 5.1.63出错_导入数据表sql表的结构出错信息,在MySQL:5.0.51a版本中出错,在MySQL:5.5.30版本中完全...

展开全部

CREATE TABLE IF NOT EXISTS `32313133353236313431303231363533e59b9ee7ad9431333332613763%DB_PREFIX%activity` (

`id` int(11) NOT NULL AUTO_INCREMENT,

`title` varchar(255) DEFAULT '',

`share_id` int(11) DEFAULT '0',

`uid` int(11) DEFAULT '0',

`cid` smallint(6) DEFAULT '0',

`cost` decimal(10,2) DEFAULT '0.00',

`begin_time` int(11) DEFAULT '0',

`end_time` int(11) DEFAULT '0',

`place` varchar(255) DEFAULT '',

`gender` tinyint(1) DEFAULT '0',

`number` smallint(6) DEFAULT '0',

`apply_number` smallint(6) DEFAULT '0',

`expiration_time` int(11) DEFAULT '0',

`fields` text,

`score` smallint(6) DEFAULT '0',

`province` smallint(6) DEFAULT '0',

`create_time` int(11) DEFAULT '0',

PRIMARY KEY (`id`),

KEY `share_id` (`share_id`) USING BTREE,

KEY `uid` (`uid`) USING BTREE,

KEY `apply_number` (`apply_number`) USING BTREE,

KEY `province` (`province`) USING BTREE,

KEY `cid` (`cid`) USING BTREE

) ENGINE=MyISAM DEFAULT CHARSET=utf8;

TRUNCATE TABLE `%DB_PREFIX%activity`;

下面的内容转自163----

bjlfp的博客

mysql BTREE问题高版本向低版本转换的时候

解决办法是打开要导入的文件在里面搜索 BTREE 找到如下内容

KEY `columnCindex` (`columnC`) USING BTREE

修改为

KEY `columnCindex` USING BTREE (`columnC`),

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值