Discuz教程网

数据表pre_security_failedlog错误及修复

[复制链接]
authicon dly 发表于 2015-12-19 12:51:30 | 显示全部楼层 |阅读模式
所遇问题现象,论坛有一些帖子不访问,报以下错误:
Discuz! Database Error

(145) Table "./jdhr/security_failedlog" is marked as crashed and should be repaired
SELECT count(*) FROM security_failedlog

forum.php?mod=attachment&aid=MTY3M3w5MzgxMzg2YXwxNDUwNTAwNTU0fDB8MTgzNg%3D%3D&noupdate=yes&.jpg

pre_security_failedlog是防水墙失败日志记录表
并且修复此表后过段时间还会问题重现
只能删除表之后重建表才可以
进入phpMyAdmin运行以下SQL语句即可
  1. DROP TABLE pre_security_failedlog;
  2. CREATE TABLE pre_security_failedlog (
  3.   id int(11) NOT NULL AUTO_INCREMENT,
  4.   reporttype char(20) NOT NULL,
  5.   tid int(10) unsigned NOT NULL DEFAULT '0',
  6.   pid int(10) unsigned NOT NULL DEFAULT '0',
  7.   uid int(10) unsigned NOT NULL DEFAULT '0',
  8.   failcount int(10) unsigned NOT NULL DEFAULT '0',
  9.   createtime int(10) unsigned NOT NULL DEFAULT '0',
  10.   posttime int(10) unsigned NOT NULL DEFAULT '0',
  11.   delreason char(255) NOT NULL,
  12.   scheduletime int(10) unsigned NOT NULL DEFAULT '0',
  13.   lastfailtime int(10) unsigned NOT NULL DEFAULT '0',
  14.   extra1 int(10) unsigned NOT NULL,
  15.   extra2 char(255) NOT NULL DEFAULT '0',
  16.   PRIMARY KEY (id),
  17.   KEY pid (pid),
  18.   KEY uid (uid)
  19. ) TYPE=MyISAM;
复制代码




上一篇:Discuz限制会员每小时发帖的主题数
下一篇:招聘求职 电脑版2.0 价值88元(2015.12.17更新)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-5-17 15:31

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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