Using version control (Git) on a MySQL database

前端 未结 4 1212
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-01 01:18

I am a WordPress Designer/Developer, who is getting more and more heavily involved with using version control, notably Git, though I do use SVN for some projects. I am curre

4条回答
  •  广开言路
    2020-12-01 01:45

    The article How to Sync A Local & Remote WordPress Blog Using Version Control gives advice on how to automate sync between two instances (development, production) of a WordPress blog using Mercurial. Is mentions that for this scenario, Git and Mercurial are very similar.

    Step 4 (Synchronizing The Databases) is of interest here.

    The database content will be exported to a file that is tracked by the revision control. Each time we pull changes, the database content will be replaced by this file, making our database up-to-date.

    Then, it elaborates on conflicts and the scripting part of the job.

    There is a version control tutorial in Mercurial out there, if you're not familiar with it.

提交回复
热议问题