Discuz数据库security_failedlog错误及修复
1、何为pre_security_failedlog:
pre_security_failedlog:防水墙失败日志记录。

2、解决方案一:
直接关闭防水墙(治标不治本)
由于这是插件防水墙的缘故,最简单的就是进入后台关掉。但这只治标不治本,最好去数据库修复一下。若不修复,在更新论坛版本时会提示如下:

3、解决方案二:修复或重建security_failedlog表(此处只写重建表)
进入mysql数据库
删除表pre_security_failedlog:DROP TABLE pre_security_failedlog;
下面 这个也可以,只是我的当初已经确定存在了,就直接用的上面的
DROP TABLE IF EXISTS pre_security_failedlog;
重建表
CREATE TABLE pre_security_failedlog ( id int(11) NOT NULL
AUTO_INCREMENT, reporttype char(20) NOT NULL, tid int(10)
unsigned NOT NULL DEFAULT '0', pid int(10) unsigned NOT NULL
DEFAULT '0', uid int(10) unsigned NOT NULL DEFAULT '0',
failcount int(10) unsigned NOT NULL DEFAULT '0', createtime int
(10) unsigned NOT NULL DEFAULT '0', posttime int(10) unsigned
NOT NULL DEFAULT '0', delreason char(255) NOT NULL, scheduletime
int(10) unsigned NOT NULL DEFAULT '0', lastfailtime int(10)
unsigned NOT NULL DEFAULT '0', extra1 int(10) unsigned NOT NULL,
extra2 char(255) NOT NULL DEFAULT '0', PRIMARY KEY (id), KEY pid
(pid), KEY uid (uid) ) ENGINE=MYISAM DEFAULT CHARSET=gbk

4、修复表的过程就不再写了,有兴趣的朋友们可以自己探索下。(其实也很简单)
