Hi!请登陆

can‘t find “pre_forum_rsscache“ 的解决方法!

2023-1-28 242 1/28

当我们给Discuz论坛进行数据备份 导出的时候会提示这个错误:

Couldn't execute 'show create table `pre_forum_rsscache`': 
Can't find file: 'pre_forum_rsscache' (errno: 2 - No such file or directory) (1017)

网上很多代码最后一行有问题,其实应该在phpmyadmin里运行下面的命令

DROP TABLE IF EXISTS pre_forum_rsscache;
CREATE TABLE cwh_forum_rsscache ( 
lastupdate int(10) unsigned NOT NULL DEFAULT '0', 
fid mediumint(8) unsigned NOT NULL DEFAULT '0', 
tid mediumint(8) unsigned NOT NULL DEFAULT '0', 
dateline int(10) unsigned NOT NULL DEFAULT '0', 
forum char(50) NOT NULL DEFAULT '', 
author char(15) NOT NULL DEFAULT '', 
`subject` char(80) NOT NULL DEFAULT '', 
description char(255) NOT NULL DEFAULT '', 
guidetype char(10) NOT NULL DEFAULT '', 
UNIQUE KEY tid (tid), 
KEY fid (fid,dateline) 
) ENGINE=MYISAM DEFAULT CHARSET=gbk 


以上是基于MYSQL5.6+的方法,其他版本请自行测试。如果你是utf-8格式,那么就把最后一行里的 gbk 替换成 utf-8

相关推荐