Discuz can‘t find “pre_forum_rsscache“的解决方案

mysql -e "show databases;" -uroot -p123456| grep -Ev "Database|information_schema|mysql|test" | xargs mysqldump -uroot -p123456 --databases > /home/mysql/mysql.sql

在使用数据库备份的时候提示,can't find "pre_forum_rsscache" 。

先进入数据库,查看dz论坛的数据库表是utf8还是gbk

mysql> show databases;
mysql> use tree;
mysql> show tables;
mysql> show create table pre_forum_thread;

 

把以下代码保存为mysql.sql文件

USE `tree`;
DROP TABLE IF EXISTS pre_forum_rsscache;
CREATE TABLE pre_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)
) TYPE=MyISAM DEFAULT CHARSET=utf8;
mysql -uroot -p123456 tree < mysql.sql

恢复即可。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值