Keeping WP database synced across multiple developers using git

There are 3 options from easiest –>

  1. Use only one remote database that you all connect to with lots of backups. That way you just have to worry about files and not the db.

  2. Use the import and export functionality built into WordPress and throw it into your version control right into the wp root (like in a new folder). Sure it takes an extra few minutes but its dead simple and you can automate it, but more importantly it will become part of the version control.

  3. Use a custom updating script to version the actual database sync. I honestly don’t know how you can manage that with git because its a just a script and doesn’t really know what is going on, I know there are 3rd party tools that do this commercial and free ( http://www.liquibase.org/).

Leave a Comment