求助,关于discuz6.1
大家好。我用的论坛是DISCUZ6.1主机是linux,mysql4.7
近一个月左右的使用,浏览网站或登录超管后台经常会出现如下问题,尤其是新会员在发了贴之后。
Discuz! info: MySQL Query Error
Time: 2008-7-4 9:09am
Script: /admincp.php
SQL: SELECT s.sid, s.styleid, s.groupid=\'6\' AS ipbanned, s.pageviews AS spageviews, s.lastolupdate, s.seccode, m.uid AS discuz_uid, m.username AS discuz_user, m.password AS discuz_pw, m.secques AS discuz_secques,
m.adminid, m.groupid, m.groupexpiry, m.extgroupids, m.email, m.timeoffset, m.tpp, m.ppp, m.posts, m.digestposts,
m.oltime, m.pageviews, m.credits, m.extcredits1, m.extcredits2, m.extcredits3, m.extcredits4, m.extcredits5,
m.extcredits6, m.extcredits7, m.extcredits8, m.timeformat, m.dateformat, m.pmsound, m.sigstatus, m.invisible,
m.lastvisit, m.lastactivity, m.lastpost, m.newpm, m.accessmasks, m.editormode, m.customshow, m.customaddfeed
FROM [Table]sessions s, [Table]members m
WHERE m.uid=s.uid AND s.sid=\'IwDHxO\' AND CONCAT_WS(\'.\',s.ip1,s.ip2,s.ip3,s.ip4)=\'116.227.227.167\' AND m.uid=\'1\'
AND m.password=\'075a44b5ec0234c1be7b0446617fafb7\' AND m.secques=\'73f6bf58\'
Error: Record has changed since last read in table \'s\'
Errno.: 1020
Similar error report has beed dispatched to administrator before.
在网上搜索了一下,有几种答案:
1、此问题是由于Discuz使用了Heap这种表方式来存储session,而mysql4的heap表有读写lock同步的bug,我们已经作了hotfix,您再看一下近期此问题是否会再次出现,如有问题,请尽快联系我们。
2、升级mysql4.7到4.8
3、phpmyadmin数据库管理工具中 升级sql语句:
DROP TABLE IF EXISTS cdb_sessions;
CREATE TABLE cdb_sessions (
sid char(6) binary 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',
styleid 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',
pageviews smallint(6) unsigned NOT NULL DEFAULT '0',
seccode mediumint(6) unsigned NOT NULL DEFAULT '0',
fid smallint(6) unsigned NOT NULL DEFAULT '0',
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
bloguid mediumint(8) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY sid (sid),
KEY uid (uid),
KEY bloguid (bloguid)
) TYPE=HEAP;
4、后台升级一下数据库,代码如下
DELETE FROM cdb_sessions;
请问大家,到底怎样解决最好啊,没有头绪了现在。
正在与空间商协商能否更换至4.8的主机。目前会员还不多,仅仅是做为管理员的我填充些内容就经常这样。没法使用下去的。
另外,用discuz提供的方法,即修复数据表,只可以暂时解决,时间不长又会出现。
谢谢大家了,这个问题有一个月了,总是出现。网址是[url]http://www.chouegg.com[/url] 至发贴时还有这种问题。
[[i] 本帖最后由 wbleon 于 2008-7-4 09:37 编辑 [/i]] 这种问题你应当去问Discuz!,这种问题是什么原因造成,有什么方案解决他们应当最清楚才对。
页:
[1]