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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 谁能提供下 数据表common_session 的sql 语句啊。

[复制链接]
liuliu220803 发表于 2013-3-27 08:43:28 | 显示全部楼层 |阅读模式
谁能提供下 数据表common_session 的sql 语句啊。
1314学习网 发表于 2013-3-27 10:02:31 | 显示全部楼层
DROP TABLE IF EXISTS pre_common_session;
CREATE TABLE pre_common_session (
  sid char(6) NOT NULL DEFAULT '',
  ip1 tinyint(3) unsigned NOT NULL DEFAULT '0',
  ip2 tinyint(3) unsigned NOT NULL DEFAULT '0',
  ip3 tinyint(3) unsigned NOT NULL DEFAULT '0',
  ip4 tinyint(3) unsigned NOT NULL DEFAULT '0',
  uid mediumint(8) unsigned NOT NULL DEFAULT '0',
  username char(15) NOT NULL DEFAULT '',
  groupid smallint(6) unsigned NOT NULL DEFAULT '0',
  invisible tinyint(1) NOT NULL DEFAULT '0',
  `action` tinyint(1) unsigned NOT NULL DEFAULT '0',
  lastactivity int(10) unsigned NOT NULL DEFAULT '0',
  lastolupdate int(10) unsigned NOT NULL DEFAULT '0',
  fid mediumint(8) unsigned NOT NULL DEFAULT '0',
  tid mediumint(8) unsigned NOT NULL DEFAULT '0',
  UNIQUE KEY sid (sid),
  KEY uid (uid)
) TYPE=HEAP;
红色部分为你的表前缀,如修改过请替换
回复

使用道具 举报

 楼主| liuliu220803 发表于 2013-3-27 10:10:53 | 显示全部楼层
1314学习网 发表于 2013-3-27 10:02
红色部分为你的表前缀,如修改过请替换

导入了common_session,但是又提示:•[1146] Table 'net28475068.common_syscache' doesn't exist
•[Query] SELECT * FROM common_syscache WHERE cname IN ('ipbanned')
回复

使用道具 举报

1314学习网 发表于 2013-3-27 11:31:11 | 显示全部楼层
liuliu220803 发表于 2013-3-27 10:10
导入了common_session,但是又提示:•[1146] Table 'net28475068.common_syscache' doesn't exist
...

我在怀疑你是不是清空了数据库

  1. DROP TABLE IF EXISTS pre_common_syscache;
  2. CREATE TABLE pre_common_syscache (
  3.   cname varchar(32) NOT NULL,
  4.   ctype tinyint(3) unsigned NOT NULL,
  5.   dateline int(10) unsigned NOT NULL,
  6.   `data` mediumblob NOT NULL,
  7.   PRIMARY KEY (cname)
  8. ) TYPE=MyISAM;
复制代码
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-21 15:29 , Processed in 0.123326 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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