Discuz!論壇 轉換遠程附件為本地附件的方法
找到論壇程序文件config/config_global.php,
用記事本打開該文件,
然后查找$_config[‘security’][‘querysafe’][‘status’]將其設置為0,
繼續查找$_config[‘admincp’][‘runquery’]將其設置為1即可。(出于安全考慮,建議執行SQL語句完畢后將這兩個參數的值再改回來)
把附件放回來 然后 后臺 站長 數據庫 升級里 運行 下面代碼
update pre_forum_attachment_0 set remote = '0' ; update pre_forum_attachment_1 set remote = '0' ; update pre_forum_attachment_2 set remote = '0' ; update pre_forum_attachment_3 set remote = '0' ; update pre_forum_attachment_4 set remote = '0' ; update pre_forum_attachment_5 set remote = '0' ; update pre_forum_attachment_6 set remote = '0' ; update pre_forum_attachment_7 set remote = '0' ; update pre_forum_attachment_8 set remote = '0' ; update pre_forum_attachment_9 set remote = '0' ;
好了轉換完畢
下面說一下本地附件轉遠程附件的方法:
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';