Home >Database >Mysql Tutorial >Discuz! info: MySQL Query Error_MySQL

Discuz! info: MySQL Query Error_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 14:01:45978browse

 论坛mysql1020问题解决

  论坛经常出现这种问题

  Discuz! info: MySQL Query Error

  User: admin

  Time: 2008-11-15 6:56pm

  Script: /club/index.php

  SQL: SELECT uid, username, groupid, invisible, action, lastactivity, fid FROM [Table]sessions WHERE uid 0 ORDER BY uid DESC LIMIT 500

  Error: Record has changed since last read in table '[Table]sessions'

  Errno.: 1020

  Similar error report has beed dispatched to administrator before.

  用这个方法可以简单解决,后台升级一下数据库

  DELETE FROM cdb_sessions;

  此问题的回答参考

  Errno.: 1020的服务商回复

  您好:

  欢迎您使用有问必答系统,您的问题回答如下:

  此问题是由于Discuz使用了Heap这种表方式来存储session,而mysql4的heap表有读写lock同步的bug,我们已经作了hotfix,您再看一下近期此问题是否会再次出现,如有问题,请尽快联系我们。

  谢谢您对我们的支持,如有问题请再与我们联系。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:MYSQL explain使用介绍_MySQLNext article:高级材料_MySQL