合并 wordpress 数据库 [英] Merging wordpress Databases

查看:73
本文介绍了合并 wordpress 数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部 -

我有以下几点1) 开发站点 12) 现场直播3) 开发站点 2

I have the following 1) DEV Site 1 2) Live Site 3) DEV Site 2

开发站点 1 和2 具有自定义菜单和专门调用 CSS 菜单 ID 的自定义 css 类.这些菜单选项与 LIVE 站点不匹配.

Both dev site 1 & 2 have custom menus and custom css classes that specifically call CSS menu ids. These menu options do not match the LIVE site.

例如.在 DEV 1 中,我有这个:.column2 #text-19 h3在 LIVE 站点中,此框尚未创建,因此如果我创建该框,它可能是 text-16

For example. In DEV 1 i have this: .column2 #text-19 h3 In the LIVE site this box was not created yet, so If I create the box it could be text-16

实时网站也有新的博客/帖子内容,这些内容是在开发网站工作时添加的,所以我不能随便写

The live site also has NEW blog/post content which has been added while the dev sites were worked on, so I cannot just over write it

如何组合所有数据库内容,以便我拥有一个包含所有正确菜单以及相应 CSS 和移动菜单的 LIVE 站点?

How do I combine all the database stuff so i have one LIVE site with all the right menus and corresponding CSS and mobile menus?

推荐答案

拥有一个环境是一个糟糕的解决方案,因为您永远不会有一个开发环境可以安全地进行测试.您在做正确的事情,您只需要同步.您可以关闭数据库并使用生产覆盖开发,但您需要找到对生产 URL 的所有引用并替换它们.

Having one environment is a bad solution, since you will never have a development environment to safely test in. You are doing the right thing, you just need to synch. You can bring down a database and over write development with production, but you will need to find all references to the production URL and replace them.

这是一个不错的工具,用于替换 WordPress 数据库中的引用

This is a decent tool for replacing references in a WordPress database

搜索替换数据库

IMO 更好且物有所值的是 WP Migrate DB Pro.您可以来回同步数据,甚至可以移动(和清理)媒体文件.

Even better and well worth the money IMO is WP Migrate DB Pro. You can sync data back and forth and even move (and cleanup) media files.

这篇关于合并 wordpress 数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆