请选择 进入手机版 | 继续访问电脑版
 找回密码
 注册账号

QQ登录

只需一步,快速开始

Discuz!论坛 转换远程附件为本地附件的方法

番茄小子 |2019-2-24 13:42:13 教程 显示全部楼层 |阅读模式 |复制链接 |查看:211
Discuz!论坛 转换远程附件为本地附件的方法


找到论坛程序文件config/config_global.php,
用记事本打开该文件,
然后查找$_config['security']['querysafe']['status']将其设置为0,
继续查找$_config['admincp']['runquery']将其设置为1即可。(出于安全考虑,建议执行SQL语句完毕后将这两个参数的值再改回来)

把附件放回来 然后 后台 站长 数据库 升级里 运行 下面代码



  1. update pre_forum_attachment_0 set remote = '0' ;
  2. update pre_forum_attachment_1 set remote = '0' ;
  3. update pre_forum_attachment_2 set remote = '0' ;
  4. update pre_forum_attachment_3 set remote = '0' ;
  5. update pre_forum_attachment_4 set remote = '0' ;
  6. update pre_forum_attachment_5 set remote = '0' ;
  7. update pre_forum_attachment_6 set remote = '0' ;
  8. update pre_forum_attachment_7 set remote = '0' ;
  9. update pre_forum_attachment_8 set remote = '0' ;
  10. update pre_forum_attachment_9 set remote = '0' ;
复制代码
好了转换完毕


下面说一下本地附件转远程附件的方法:
  1. update pre_forum_attachment_0 set remote = '1';
  2. update pre_forum_attachment_1 set remote = '1';
  3. update pre_forum_attachment_2 set remote = '1';
  4. update pre_forum_attachment_3 set remote = '1';
  5. update pre_forum_attachment_4 set remote = '1';
  6. update pre_forum_attachment_5 set remote = '1';
  7. update pre_forum_attachment_6 set remote = '1';
  8. update pre_forum_attachment_7 set remote = '1';
  9. update pre_forum_attachment_8 set remote = '1';
  10. update pre_forum_attachment_9 set remote = '1';
复制代码




您需要登录后才可以回帖 登录 | 注册账号