当我们的网站原来是用wordpress做的现在【zài】想转用yzmcms程【chéng】序,我【wǒ】们就需要将模板和数据【jù】都转到yzmcms并且【qiě】保【bǎo】持原【yuán】来的链接Url不能变【biàn】,至【zhì】于【yú】模板是比较简单的,浏览器另存【cún】为html文件再对照官方标【biāo】签文档套用即可,这里小【xiǎo】郭推荐yzmcms模板标签助【zhù】手但是数据库要转【zhuǎn】移至yzmcms这时该怎么办呢,本【běn】文【wén】小郭就来【lái】分享一【yī】下wordpress网站数据【jù】库无缝转移至yzmcms,话不多【duō】说,直【zhí】接上代码【mǎ】:
以上是文章、分类、标签tag、缩略图等包含网站大部分数据了。
先将wordress网站的数【shù】据【jù】库中的以下数【shù】据【jù】表导出.sql文件,
然后【hòu】,分别将这些.sql导入至yzmcms程序的数据库中,最后再用上面的代码分别执行【háng】一次,这样【yàng】进入【rù】yzmcms程序的后台再【zài】看数据【jù】就会发现数据已经全【quán】部【bù】转过来了,最后系统设【shè】置里【lǐ】填写好域名【míng】,再批量更新URL,至此,wordpress数【shù】据就【jiù】全部成功转移至【zhì】yzmcms了。
版权所有:深圳市网商在线科技有限公司