Discuz! 本地附件 转换为 远程附件

1、首先在附件服务器设置好FTP,然后将对应文件转移过去

2、更新数据库,直接在后台升级就可以了

update pre_forum_attachment_0 set remote=1;
update pre_forum_attachment_1 set remote=1;
update pre_forum_attachment_2 set remote=1;
update pre_forum_attachment_3 set remote=1;
update pre_forum_attachment_4 set remote=1;
update pre_forum_attachment_5 set remote=1;
update pre_forum_attachment_6 set remote=1;
update pre_forum_attachment_7 set remote=1;
update pre_forum_attachment_8 set remote=1;
update pre_forum_attachment_9 set remote=1;

来源:http://www.discuz.net/thread-2711230-1-1.html