I am working on a project, but should always switch between two computers. I need to synchronize the source code and the database between two computers, so I can do my work on computer 1 in the morning, and then continue to work on computer 2 in the evening.
To synchronize the source code, I use git with the pull / push action, but it's harder to synchronize the database. My idea is to use Dropbox and some folders synchronizing software to automatically sync between mysql / data / mydb folder and Dropbox folder on computer 1, then automatically sync between Dropbox folder and mysql / data / mydb folder on computer 2. But then I realized that the database could not be copied in this way, he simply created an empty database.
Is there a way to move the database by copying files or another way to do my project on two computers?
source
share