范文 |
今天把服务器上面的织梦网站打包回本地重现的时候,数据库导入老是不成功,总是提示dede_purview表有问题,百度了一下找到答案,并顺利解决。小菜在这里做个记录,提供给有需要的朋友。 错误: sql 查询: 表的结构 `54cms_purview` create table if not exists `54cms_purview` ( `mid` mediumint( 8 ) default '0', `typeid` smallint( 5 ) default '0', `rank` smallint( 6 ) default null , `pkey` varchar( 30 ) character set latin1 not null , `pvalue` text not null , key `pkey` ( `pkey` ) using btree ) engine = myisam default charset = gbk; 解决办法: 把phpmyadmin导出的 sql文件内这一句里的:using btree 去掉或者调换位置, 这是mysql server不兼容造成的。 上面的查询语句应该改成: create table if not exists `54cms_purview` ( `mid` mediumint( 8 ) default '0', `typeid` smallint( 5 ) default '0', `rank` smallint( 6 ) default null , `pkey` varchar( 30 ) character set latin1 not null , `pvalue` text not null , key `pkey` using btree ( `pkey` ) ) engine = myisam default charset = gbk; 保存,导入,搞定!
|