一般在本機上的都帶有數(shù)據(jù)庫,
秀峰ssl適用于網(wǎng)站、小程序/APP、API接口等需要進行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場價格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:028-86922220(備注:SSL證書合作)期待與您的合作!
把本地的數(shù)據(jù)庫用sql語句輸出,
復(fù)制sql語句,然后鏈接你空間的數(shù)據(jù)庫,配置對接好以后把你復(fù)制的sql語句粘貼到你空間自帶的數(shù)據(jù)庫執(zhí)行一下,你的數(shù)據(jù)信息就追加到空間數(shù)據(jù)庫了。
在FTP中可以修改的。
具體的步驟:
登錄FTP找到你的域名的文件夾;
打開e/,接著打開config/;
在里面的config.php中可以修改, 就是(你的域名/e/config/config.php)這個就是CMS的數(shù)據(jù)庫配置文件;
首先要導(dǎo)入的肯定是欄目了
關(guān)于數(shù)據(jù)庫結(jié)構(gòu) 帝國官方有一個很詳細的手冊 我在之前的文章中有發(fā)布 ,而可憐的dede 只能在一些blog的文章中找到,感謝整理這些資料的博主們,不過還不是很方便,我覺著dede官方應(yīng)該大改進了
帝國cms 欄目相關(guān)數(shù)據(jù)表 mlf_enewsclass (注意表的前綴)
dedecms 欄目相關(guān)數(shù)據(jù)表dede_arctype
這里就不對字段進行解釋了 直接上sql了
把帝國數(shù)據(jù)庫中mlf_enewsclass 這張表導(dǎo)入到dede數(shù)據(jù)庫中方便操作
這條數(shù)據(jù)執(zhí)行完了之后后臺欄目已經(jīng)有數(shù)據(jù)了
insert into dede_arctype (id,reid,typename,picname,sortrank,typedir,description,keywords) select classid,bclassid,
classname,classimg,myorder,classpath,intro,classpagekey from mlf_enewsclass
update `dede_arctype` set `issend`=1
update `dede_arctype` set `isdefault`=1
DedeTag Engine Create File False以下幾條sql必須執(zhí)行,要不然會出現(xiàn) 錯誤
-----------------------------------------------------------------------------
update `dede_arctype` set `namerule`="{typedir}/{Y}/{M}{D}/{aid}.html"
update `dede_arctype` set `namerule2`="{typedir}/list_{tid}_{page}.html"
------------------------------------------------------------------------------
update `dede_arctype` set `typedir`=CONCAT('{cmspath}/',typedir)
update `dede_arctype` set `templist`="{style}/list_article.htm"
update `dede_arctype` set `temparticle`="{style}/article_article.htm "
update `dede_arctype` set `tempindex`="{style}/index_article.htm"
update dede_arctype da,mlf_enewsclassadd me set da.content=me.classtext,da.seotitle=me.fpagetitle where da.id=me.classid(注意)
這樣 欄目列表成功轉(zhuǎn)換,后臺可生成
下來開始整合文章
首先 先來分析文章數(shù)據(jù)庫結(jié)構(gòu)
dede文章相關(guān)的有3張數(shù)據(jù)表,分別是dede_archives ,dede_addonarticle,dede_arctiny
帝國文章相關(guān)的數(shù)據(jù)表: mlf_ecms_news,mlf_ecms_news_data_1(可能數(shù)據(jù)表有所不同,不過結(jié)構(gòu)區(qū)別都不大)
導(dǎo)入文章
insert into `dede_archives` (id,typeid,sortrank,click,title,litpic,filename,pubdate,senddate,description,keywords) select id,classid,truetime,onclick,title,titlepic,filename,newstime,lastdotime,smalltext,keyboard from mlf_ecms_news
導(dǎo)入文章來源作者
update `dede_archives` da,mlf_ecms_news_data_1 men set da.source=men.befrom,da.writer=men.writer where da.id=men.id
導(dǎo)入文章body(內(nèi)容)
insert into dede_addonarticle (aid,typeid,body) select id,classid,newstext from mlf_ecms_news_data_1 men
現(xiàn)在后臺已經(jīng)有了文章
不過發(fā)現(xiàn)了個問題,分類中顯示的文檔數(shù)量為0
經(jīng)過查資料,摸索 發(fā)現(xiàn)還需要操作一個數(shù)據(jù)表 dede_arctiny后臺統(tǒng)計文檔數(shù)量操作的是這個數(shù)據(jù)表
insert into `dede_arctiny` (id,typeid,channel,senddate,sortrank,mid) select id,typeid,channel,senddate,sortrank,mid from dede_archives
執(zhí)行完畢之后發(fā)現(xiàn)最下級的欄目已經(jīng)正常顯示文檔數(shù)量,但是頂級欄目依然是0,查看相關(guān)資料才發(fā)現(xiàn)dede一直是這樣,這也算dede的一個bug吧
修改 config.php 文件 //數(shù)據(jù)庫設(shè)置 $phome_use_db='mysql'; //數(shù)據(jù)庫類型 $phome_use_dbver='5.0'; //數(shù)據(jù)庫版本 $phome_db_server='xxxxx'; //數(shù)據(jù)庫登陸地址 $phome_db_port='xxxx'; //端口,不填為按默認 $phome_db_username='xxxxx'; //數(shù)據(jù)庫用戶名 $phome_db_password='xxxxxx'; //數(shù)據(jù)庫密碼 $phome_db_dbname='xxxxx'; //數(shù)據(jù)庫名 $phome_db_char='gbk'; //設(shè)置默認編碼 $phome_db_dbchar='gbk'; //數(shù)據(jù)庫默認編碼 $dbtbpre='phome_'; //數(shù)據(jù)表前綴 $ecmslang='gb'; //語言包 要修改的數(shù)據(jù)庫登陸地址,數(shù)據(jù)庫用戶名,數(shù)據(jù)庫密碼,數(shù)據(jù)庫名就可以了
當前文章:帝國cms數(shù)據(jù)庫轉(zhuǎn)換 帝國cms使用手冊
新聞來源:http://chinadenli.net/article42/ddeoihc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供域名注冊、App設(shè)計、網(wǎng)站建設(shè)、品牌網(wǎng)站建設(shè)、定制網(wǎng)站、微信小程序
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)