Q:

Work on one project with 2 computers

I'm working on a project, but always have to switch between 2 computers. I need to sync source code and database between 2 computers, so I can do my job on computer 1 at the morning, then continue the job on computer 2 at the evening.
To sync source code, I use git with pull/push action, but it's harder to sync database. My idea is use dropbox and some folders syncing software to auto sync between mysql/data/mydb folder and dropbox folder on computer 1, then auto sync between dropbox folder and mysql/data/mydb folder on computer 2. But then I realized that databases can't be copied that way, it just created an empty database.
Is there a way to move database via copying files, or another way to have my project done on 2 computers?

A:

Use portable XAMPP (download from here)
You can install the server inside a portable hard drive or pen drive and then run the server from there.

