账号通
    

账号  

密码  

1680

查看

3

回复
主题:[已答复]V6.5 To V7.0升级失败,报错 80004005 [收藏主题] 转到:  
一生有你 当前离线

10439

主题

0

广播

18

粉丝
添加关注
级别:版主

用户积分:72521 分
登录次数:1969 次
注册时间:2006/7/1
最后登录:2021/8/25
一生有你 发表于:2010/10/20 10:21:00   | 显示全部帖子 查看该作者主题 楼主 
科汛智能建站系统

原因为,KS_AskGrade表没有自动增长ID导到,按以下操作


打开升级工具文件,找到以下代码

'插入论坛的初数系统级别
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('管理员',0,'rank5.gif',0,1,1,'red')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('超级版主',0,'rank4.gif',0,1,2,'red')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('版主',0,'rank4.gif',0,1,3,'red')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('学前班',0,'rank1.gif',0,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('一年级',0,'rank1.gif',100,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('二年级',0,'rank1.gif',200,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('三年级',0,'rank1.gif',300,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('三年级',0,'rank2.gif',300,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('四年级',0,'rank2.gif',400,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('五年级',0,'rank2.gif',500,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('六年级',0,'rank2.gif',600,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('七年级',0,'rank3.gif',800,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('八年级',0,'rank3.gif',1000,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('九年级',0,'rank3.gif',1200,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('高一年',0,'rank3.gif',1500,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('高二年',0,'rank4.gif',1800,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('高三年',0,'rank4.gif',2100,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('大一',0,'rank4.gif',2500,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('大二',0,'rank4.gif',3000,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('大三',0,'rank4.gif',3500,1,0,'#000000')")
   Conn.Execute("Insert Into KS_AskGrade(UserTitle,Score,Ico,ClubPostNum,TypeFlag,Special,Color) values('博士生',0,'rank5.gif',5000,1,0,'#000000')")



把他删除了,然后升级完成后,把你数据库的ks_askgrade这张表删除,将官方全新程序里的数据库的这张表导入到你数据库,这样就行了

 
我爱世界杯,我爱KesionCMS.
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.07715秒 powered by KesionCMS 9.0