違法網站請勿向我司工作人員發起任何形式的人工服務請求,嚴禁利用鴻茂傳媒技術支持服務與產品從事任何非法活動,如有發現不再提供任何技術支持。×

discuz! x版本地附件與遠程附件的轉換教程

'Discuz!

进行操作前,请备份数据库

1、本地转到远程

論壇後台--全境--上傳裝置--啟動遠程附件

將本地附件目錄數據/附件內部的文件夾移動到遠程伺服器上

資料庫執行SQL語言

论坛的(0表示本地,1表示远程

更新pre_forum_attachment_0設置remote=1,其中remote=0;

更新pre_forum_attachment_1設置remote=1,其中remote=0;

更新pre_forum_attachment_2設置remote=1,其中remote=0;

更新pre_forum_attachment_3設置remote=1,其中remote=0;

更新pre_forum_attachment_4設置remote=1,其中remote=0;

更新pre_forum_attachment_5設置remote=1,其中remote=0;

更新pre_forum_attachment_6設置remote=1,其中remote=0;

更新pre_forum_attachment_7設置remote=1,其中remote=0;

更新pre_forum_attachment_8設置remote=1,其中remote=0;

更新pre_forum_attachment_9設置remote=1,其中remote=0;

门户的

更新pro_portal_article_title set remote=1,其中remote=0;

更新pro_portal_attachment set remote=1,其中remote=0;

更新pro_portal_topic_pic set remote=1,其中remote=0;

相冊的{相冊表中的remote值還有一種情況為remote=2(論壇附件圖片保存到相冊)}

更新pro_home_pic設置remote=remote+1;

二、远程转到本地

台關閉後續遠程附件裝置,將附件移動到本地伺服器的數據/附件目錄後立即執行SQL

0表示本地,1表示远程

論壇

更新pre_forum_attachment_0設置remote=0,其中remote=1;

更新pre_forum_attachment_1設置remote=0,其中remote=1;

更新pre_forum_attachment_2設置remote=0,其中remote=1;

更新pre_forum_attachment_3設置remote=0,其中remote=1;

更新pre_forum_attachment_4設置remote=0,其中remote=1;

更新pre_forum_attachment_5設置remote=0,其中remote=1;

更新pre_forum_attachment_6設置remote=0,其中remote=1;

update pre_forum_attachment_7 set remote=0 where remote=1;

update pre_forum_attachment_8 set remote=0 where remote=1;

update pre_forum_attachment_9 set remote=0 where remote=1;

门户

update pre_portal_article_title set remote=0 where remote=1;

更新pro_portal_attachment set remote=0,其中remote=1;

更新pro_portal_topic_pic set remote=0,其中remote=1;

更新pro_home_pic設置remote=remote-1

© 網站版權與免責聲明

1、【鴻茂傳媒】獨立擁有本網站相關網頁內所有資料的版權;

2、未經【鴻茂傳媒】的明確書面許可,任何人不得對其進行複製;

3、本網站未註明【鴻茂傳媒】的文章,均來源於網絡,僅供大家學習與參考;

4、如有侵權/違規/不妥請聯繫客服qq或郵箱刪除,敬請諒解;

5、【鴻茂傳媒】保留隨時更正、修改、更新本聲明的權利。法律申明

服務需求留言板
*緊急問題聯繫客服
提交
提交需求
工作日: 8:30 - 22:00 在線qq客服

掃碼諮詢微信客服

鴻茂傳媒企業居間
頂部