Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[转换] 数据库查询错误

[复制链接]
速溶咖啡 发表于 2011-7-29 20:00:46 | 显示全部楼层 |阅读模式
数据转换X2时,在执行转换程序( 28 / 69 ) membermagics.php时,提示

MySQL Error
Message
: query_error
SQL: INSERT INTO `seeyc`.pre_common_member_magic SET `uid`='5962',`magicid`='2',`num`='2'
Error: Duplicate entry '5962-2' for key 'PRIMARY'
Errno.: 1582
Click here to seek help.

PHP Backtrace
FileLineClassTypeFunction
include\db.class.php102 db_mysql->halt
source\d7.2_x2.0\table\membermagics.php33 db_mysql->query
include\do_convert.inc.php54 require
index.php36 require

回复

使用道具 举报

12153556 发表于 2011-7-29 20:29:49 | 显示全部楼层
打开这一步的转换程序文件,替换里面的INSERT INTO为REPLACE INFO试试
回复

使用道具 举报

 楼主| 速溶咖啡 发表于 2011-7-29 21:23:54 | 显示全部楼层
12153556 发表于 2011-7-29 20:29
打开这一步的转换程序文件,替换里面的INSERT INTO为REPLACE INFO试试

您好,我对数据库不怎么懂,能再说的详细点吗?谢谢
回复

使用道具 举报

12153556 发表于 2011-7-29 23:38:48 | 显示全部楼层
你是转换数据,还是升级数据?
回复

使用道具 举报

baxter 发表于 2011-7-30 00:41:11 | 显示全部楼层
清空表pre_common_member_magic 点击重新转换这一步
回复

使用道具 举报

十堰顺乐 发表于 2011-7-30 00:50:56 | 显示全部楼层
{:soso_e150:}我也不会啊

www.shunle.net
回复

使用道具 举报

 楼主| 速溶咖啡 发表于 2011-7-30 09:03:53 | 显示全部楼层
12153556 发表于 2011-7-29 23:38
你是转换数据,还是升级数据?

从7.2到X2
回复

使用道具 举报

 楼主| 速溶咖啡 发表于 2011-7-30 09:04:31 | 显示全部楼层
baxter 发表于 2011-7-30 00:41
清空表pre_common_member_magic 点击重新转换这一步

清空的话,老数据还在???
回复

使用道具 举报

 楼主| 速溶咖啡 发表于 2011-7-31 18:02:43 | 显示全部楼层
急求高手帮忙
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-11 20:04 , Processed in 0.122893 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表