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

 找回密码
 立即注册
搜索

[疑问] 论坛的数据库出现问题提示:Discuz! info: MySQL Query Error

[复制链接]
j0808 发表于 2009-5-18 17:24:06 | 显示全部楼层 |阅读模式
本帖最后由 j0808 于 2009-5-18 17:28 编辑

昨天我安装了一个分类信息的网站使用了 数据库 我再打开论坛主页打不开提示:
Discuz! info: MySQL Query Error

Time: 2009-5-17 10:40pm
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='YvnrgW' AND CONCAT_WS('.',ip1,ip2,ip3,ip4)='123.188.128.210'
Error: Table 'a0504194707.[Table]sessions' doesn't exist
Errno:1046

Similar error report has beed dispatched to administrator before.
我的论坛主页:http://www.jz5168.cn/bbs/ 希望哪位大侠帮助!谢谢
回复

使用道具 举报

 楼主| j0808 发表于 2009-5-18 17:25:53 | 显示全部楼层
错误编号:1046
回复

使用道具 举报

 楼主| j0808 发表于 2009-5-19 07:02:26 | 显示全部楼层
等了一宿没有人解答 !郁闷 !哪位老大帮看一下 !谢谢
回复

使用道具 举报

海风习习123 发表于 2009-5-19 08:35:21 | 显示全部楼层
Error: Table 'a0504194707.[Table]sessions' doesn't exist
数据库覆盖了?
回复

使用道具 举报

幸福在右 发表于 2009-5-19 10:12:27 | 显示全部楼层
www.comsenz.com
搜索 1046 看看是怎么回事?
回复

使用道具 举报

12153556 发表于 2009-5-19 17:49:40 | 显示全部楼层
本帖最后由 12153556 于 2009-5-19 17:52 编辑

Error: Table 'a0504194707.[Table]sessions' doesn't exist

错误:[表]sessions' 不存在

可以在后台执行以下代码试下,注意:操作前请先备份数据(千万注意要备份)

红色部分请根据自己需要来修改下


  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;

复制代码

评分

1

查看全部评分

回复

使用道具 举报

beijing200808 发表于 2009-5-19 18:17:20 | 显示全部楼层
先到数据库中找一下有没有session这个表,如果没有,按照 12153556 的方法操作一下吧
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-16 23:00 , Processed in 0.113162 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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