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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] 求助

[复制链接]
思彤001 发表于 2012-9-12 20:23:58 | 显示全部楼层 |阅读模式
论坛发帖 回帖出错 怎么才能解决好!谁帮帮我

Discuz! Database Error
The database has encountered a problem. Need Help?

Error messages:
  • [Type] 查询语句错误
  • [1062] Duplicate entry '2288' for key 1
  • [Query] INSERT INTO forum_post_tableid SET `pid`=''
Program messages:
  • [Line: 0060]forum.php(require)
  • [Line: 0362]source/module/forum/forum_post.php(require_once)
  • [Line: 0490]source/include/post/post_newthread.php(insertpost)
  • [Line: 0931]source/function/function_forum.php(DB::insert)
  • [Line: 0930]source/class/class_core.php(DB::query)



12153556 发表于 2012-9-12 21:58:24 | 显示全部楼层
使用tools修复下试试
回复

使用道具 举报

baxter 发表于 2012-9-12 22:32:18 | 显示全部楼层
修改forum_post_tableid表的自增大值
回复

使用道具 举报

 楼主| 思彤001 发表于 2012-9-13 00:03:17 | 显示全部楼层
baxter 发表于 2012-9-12 22:32
修改forum_post_tableid表的自增大值

这个和服务器 有关系吗?还是程序问题
回复

使用道具 举报

crx349 发表于 2012-9-13 00:04:19 | 显示全部楼层
是数据库内容重复了 修复下就OK了
回复

使用道具 举报

白乐天 发表于 2012-9-13 14:50:37 | 显示全部楼层
  1. insert into pre_forum_post_tableid (pid)
  2. select max(pid)+1 from pre_forum_post
复制代码
执行一下上面这句话
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 07:29 , Processed in 0.313647 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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