亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        Discuz!X2.0本地附件和遠(yuǎn)程附件之間的轉(zhuǎn)化終極教程版

        字號(hào):


            折騰了一天,終于弄清楚了本地附件轉(zhuǎn)換到遠(yuǎn)程附件的問(wèn)題了,目前,相冊(cè),論壇附件,圖片,空間,一切都正常了。
            下面來(lái)給大家分享經(jīng)驗(yàn):
            本地附件轉(zhuǎn)到遠(yuǎn)程附件:
            論壇上有一些帖子,代碼教程是:
            remote=remote+1;
            如果你只在數(shù)據(jù)庫(kù)了操作了一次,問(wèn)題還不大,如果你重復(fù)操作了,那么你的問(wèn)題就大了,你會(huì)發(fā)現(xiàn)相冊(cè)里的圖片你都找不到,而且甚至FTP目錄里都找不到這個(gè)文件名的文件,所以下面我就來(lái)談我的方法:
            我使用的工具:帝國(guó)備份王
            這個(gè)可以先把數(shù)據(jù)庫(kù)備份了,然后再來(lái)進(jìn)行sql升級(jí)操作,都在這個(gè)備份王里面完成。
            1、先備份數(shù)據(jù)庫(kù)
            2、附件的移動(dòng)
            3、開(kāi)始sql語(yǔ)句升級(jí)
            本地附件轉(zhuǎn)移到遠(yuǎn)程附件,在帝國(guó)備份王里執(zhí)行如下sql,記得要設(shè)置數(shù)據(jù)庫(kù)名稱和編碼哦,關(guān)鍵在加粗的第四句,如果盲目的+1,就會(huì)出現(xiàn)一些圖片無(wú)法找到,而且在ftp上也找不到的情況。
            update pre_portal_article_title set remote=1 where remote=0;
            update pre_portal_attachment set remote=1 where remote=0;
            update pre_portal_topic_pic set remote=1 where remote=0;
            update pre_home_pic set remote=remote+1;
            update pre_forum_attachment_0 set remote=1 where remote=0;
            update pre_forum_attachment_1 set remote=1 where remote=0;
            update pre_forum_attachment_2 set remote=1 where remote=0;
            update pre_forum_attachment_3 set remote=1 where remote=0;
            update pre_forum_attachment_4 set remote=1 where remote=0;
            update pre_forum_attachment_5 set remote=1 where remote=0;
            update pre_forum_attachment_6 set remote=1 where remote=0;
            update pre_forum_attachment_7 set remote=1 where remote=0;
            update pre_forum_attachment_8 set remote=1 where remote=0;
            update pre_forum_attachment_9 set remote=1 where remote=0;
            遠(yuǎn)程附件轉(zhuǎn)移到本地:
            把以上的 0和1進(jìn)行互換,0表示本地,1表示遠(yuǎn)程,
            update pre_portal_article_title set remote=0 where remote=1;
            update pre_portal_attachment set remote=0 where remote=1;
            update pre_portal_topic_pic set remote=0 where remote=1;
            update pre_home_pic set remote=remote-1;
            update pre_forum_attachment_0 set remote=0 where remote=1;
            update pre_forum_attachment_1 set remote=0 where remote=1;
            update pre_forum_attachment_2 set remote=0 where remote=1;
            update pre_forum_attachment_3 set remote=0 where remote=1;
            update pre_forum_attachment_4 set remote=0 where remote=1;
            update pre_forum_attachment_5 set remote=0 where remote=1;
            update pre_forum_attachment_6 set remote=0 where 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;