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

 找回密码
 立即注册
搜索

[疑问] 换了数据库和新空间论坛无法显示!!!!!!!

[复制链接]
hujiepin 发表于 2009-8-13 17:42:40 | 显示全部楼层 |阅读模式
换了数据库和新空间论坛无法显示!!!!!!!
数据库ID和密码已在CONFIG文件改过了,请稿手指点
Discuz! info: MySQL Query Error

Time: 2009-8-13 5:38pm
Script: /bbs/index.php

SQL: SELECT sid, uid AS sessionuid, groupid, groupid='6' AS ipbanned, pageviews AS spageviews, styleid, lastolupdate, seccode
FROM [Table]sessions WHERE sid='IYjNdh' AND CONCAT_WS('.',ip1,ip2,ip3,ip4)='116.52.112.142'
Error: Table 'sq_chxinfokkk.[Table]sessions' doesn't exist
数据表缺失,请恢复备份数据详细解决方案请点击这里

Similar error report has been dispatched to administrator before.
回复

使用道具 举报

 楼主| hujiepin 发表于 2009-8-13 17:54:54 | 显示全部楼层
官方的说明都改过了,不行啊
回复

使用道具 举报

chinaboy569 发表于 2009-8-13 21:54:17 | 显示全部楼层
我也是((em:05))
回复

使用道具 举报

12153556 发表于 2009-8-13 22:00:47 | 显示全部楼层
本帖最后由 12153556 于 2009-8-13 22:02 编辑

数据表缺失,请恢复备份数据

数据表不存在,重建就可以了


  1. DROP TABLE IF EXISTS cdb_sessions;
  2. CREATE TABLE cdb_sessions (
  3.   sid char(6) binary NOT NULL DEFAULT '',
  4.   ip1 tinyint(3) unsigned NOT NULL DEFAULT '0',
  5.   ip2 tinyint(3) unsigned NOT NULL DEFAULT '0',
  6.   ip3 tinyint(3) unsigned NOT NULL DEFAULT '0',
  7.   ip4 tinyint(3) unsigned NOT NULL DEFAULT '0',
  8.   uid mediumint(8) unsigned NOT NULL DEFAULT '0',
  9.   username char(15) NOT NULL DEFAULT '',
  10.   groupid smallint(6) unsigned NOT NULL DEFAULT '0',
  11.   styleid smallint(6) unsigned NOT NULL DEFAULT '0',
  12.   invisible tinyint(1) NOT NULL DEFAULT '0',
  13.   `action` tinyint(1) unsigned NOT NULL DEFAULT '0',
  14.   lastactivity int(10) unsigned NOT NULL DEFAULT '0',
  15.   lastolupdate int(10) unsigned NOT NULL DEFAULT '0',
  16.   pageviews smallint(6) unsigned NOT NULL DEFAULT '0',
  17.   seccode mediumint(6) unsigned NOT NULL DEFAULT '0',
  18.   fid smallint(6) unsigned NOT NULL DEFAULT '0',
  19.   tid mediumint(8) unsigned NOT NULL DEFAULT '0',
  20.   bloguid mediumint(8) unsigned NOT NULL DEFAULT '0',
  21.   UNIQUE KEY sid (sid),
  22.   KEY uid (uid),
  23.   KEY bloguid (bloguid)
  24. ) TYPE=HEAP;
复制代码

可在数据中执行以上代码

注意:操作前请备份数据
回复

使用道具 举报

huihui0103 发表于 2009-8-13 22:05:34 | 显示全部楼层
本帖最后由 huihui0103 于 2009-8-13 22:06 编辑

就是缺表了
回复

使用道具 举报

 楼主| hujiepin 发表于 2009-8-13 22:13:45 | 显示全部楼层
数据表缺失,请恢复备份数据

数据表不存在,重建就可以了


DROP TABLE IF EXISTS cdb_sessions;
CREATE TABLE cdb_sessions (
  sid char(6) binary NOT NULL DEFAULT '',
  ip1 tinyint(3) unsigned NOT N ...
12153556 发表于 2009-8-13 22:00

之前没有做过备份数据库,不知道如何重建,请高能否说明更清楚一点,这代码放什么地方?
回复

使用道具 举报

 楼主| hujiepin 发表于 2009-8-14 08:51:03 | 显示全部楼层
((em:17))((em:17))
回复

使用道具 举报

桃子(小敏) 发表于 2009-8-14 09:25:29 | 显示全部楼层
到后台,工具,数据库,升级,执行上述sql语句重建数据库表
注意:把cdb_ 修改为您的数据库的表前缀
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-16 00:56 , Processed in 0.104914 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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