admin 发表于 2020-2-29 17:13:13

Discuz 提示错误 (1146) Table common_member_archive' doesn't exist

因今天执行了统计更新,刚才在操作Discuz后台时更新缓存时出现(1146) Table common_member_archive' doesn't exist,如下图所示:




这个报错是因数据库缺失”commin_member_archive”数据表所至,而这个表在全新安装Discuz程序后也没有,那么可能是某个插件自带的,因此就要把这数据库表添加进入,添加方法如下:
我们先利用数据库工具登陆后选择自己的数据库,再点“查询”会出现类似“查询编辑器”的窗口,如下图所示:



点击“查询”后会出现一个空白的“查询编辑器”窗口,把下面的查询语句复制并粘贴在空白处并点击“运行”就可以把这数据表添加上去,从而解决出现的错误:
CREATE TABLE `pre_common_member_archive` (
      `uid` MEDIUMINT (8) UNSIGNED NOT NULL auto_increment,
      `email` CHAR (40) NOT NULL DEFAULT '',
      `username` CHAR (15) NOT NULL DEFAULT '',
      `password` CHAR (32) NOT NULL DEFAULT '',
      `status` TINYINT (1) NOT NULL DEFAULT '0',
      `emailstatus` TINYINT (1) NOT NULL DEFAULT '0',
      `avatarstatus` TINYINT (1) NOT NULL DEFAULT '0',
      `videophotostatus` TINYINT (1) NOT NULL DEFAULT '0',
      `adminid` TINYINT (1) NOT NULL DEFAULT '0',
      `groupid` SMALLINT (6) UNSIGNED NOT NULL DEFAULT '0',
      `groupexpiry` INT (10) UNSIGNED NOT NULL DEFAULT '0',
      `extgroupids` CHAR (20) NOT NULL DEFAULT '',
      `regdate` INT (10) UNSIGNED NOT NULL DEFAULT '0',
      `credits` INT (10) NOT NULL DEFAULT '0',
      `notifysound` TINYINT (1) NOT NULL DEFAULT '0',
      `timeoffset` CHAR (4) NOT NULL DEFAULT '',
      `newpm` SMALLINT (6) UNSIGNED NOT NULL DEFAULT '0',
      `newprompt` SMALLINT (6) UNSIGNED NOT NULL DEFAULT '0',
      `accessmasks` TINYINT (1) NOT NULL DEFAULT '0',
      `allowadmincp` TINYINT (1) NOT NULL DEFAULT '0',
      `avatar` VARCHAR (255) NOT NULL DEFAULT '',
      `onlyacceptfriendpm` TINYINT (1) NOT NULL DEFAULT '0',
      `conisbind` TINYINT (1) UNSIGNED NOT NULL DEFAULT '0',
      PRIMARY KEY (`uid`),
      UNIQUE KEY `username` (`username`),
      KEY `email` (`email`),
      KEY `groupid` (`groupid`),
      KEY `conisbind` (`conisbind`)
) ENGINE = MyISAM DEFAULT CHARSET = utf8 AUTO_INCREMENT = 1

页: [1]
查看完整版本: Discuz 提示错误 (1146) Table common_member_archive' doesn't exist