1、安装新的织梦CMS系统,并把备份的数据库和附件上传到对应的目录
2、恢复织梦后台数据库
3、安装新的帝国CMS6.6系统,数据表填写跟织梦CMS数据表一致
4、登录帝国CMS后台,根据织梦CMS后台的目录新建目录,注意目录路径要一致
5、将下载好的织梦CMS转帝国CMS插件上传到帝国的e/update,没有update目录就自己新建一个
6、修改“e/update/tbpre.php”文件,将“$dedecmstbpre”的值设为安装DEDECMS的数据表前缀一样
7、访问e/update/dedecmstoecms.php,填写对应织梦后台的里面ID
8、点击转换
一、批量导入栏目:
insert into phome_enewsclass (classid,bclassid,classname,myorder,classpath,intro,classpagekey) select id,reid,typename,sortrank,typedir,description,keywords from dede_arctype
二、导入文章
insert into phome_ecms_news (id,classid,truetime,onclick,title,titlepic,filename,newstime,lastdotime,smalltext,keyboard) select id,typeid,sortrank,click,title,litpic,filename,pubdate,senddate,description,keywords from dede_archives
三、导入文章来源作者
update `dede_archives` da,phome_ecms_news_data_1 men set da.source=men.befrom,da.writer=men.writer where da.id=men.id
四、导入文章body(内容)
insert into phome_ecms_news_data_1 (id,classid,newstext) select aid,typeid,body from dede_addonarticle men
五、其他可能用的语句(参考):
1、替换多余的路径
update phome_enewsclass set classpath = replace(classpath,'{cmspath}/','')
2、批量设置文章属性:
#2019-8-10
UPDATE phome_enewsclass SET lencord = '25', link_num = '10', classtype= '.html'
, filename = '.html',hotline = '10',goodline = '10',newline = '10',hotline = '10',modid = '1',checked = '1',tbname = 'news'
,down_num = '2',online_num = '2', jstempid = '1',
addreinfo = '1',islast = '1' ,listtempid = '1',newstempid = '1' , newspath='Y-m-d',filetype='.html',listorder='id DESC',reorder='newstime DESC'
4。设置class
insert into phome_enewsclassadd(classid) select classid from phome_enewsclass;
六:常见问题:
1、目录权限
2、设置:栏目父子关系
#2020-3-15
数据库update select
update yzlink_enewsclass y set y.classimg= ( select lmpic from swcc_arctype m where m.id=y.classid);
update yzlink_enewsclassadd y set y.headerimg= ( select arcpic from swcc_arctype m where m.id=y.classid);
update yzlink_enewsclass y set y.classimg= ( select lmpic from swcc_arctype m where m.id+188=y.classid);
update yzlink_enewsclassadd y set y.headerimg= ( select arcpic from swcc_arctype m where m.id+188=y.classid);
公司名称:承德博云信息科技有限公司
地址:河北省 承德市 双滦区 元宝山大街
邮编:067001
电话:0314-7055630 
邮箱:boyunweb@163.com
24小时热线电话:185-3146-6707