Like many people, when I first started working with WordPress I used MAMP for my local development environment, but I also used multiple machines which can cause issues when I have different databases. Luckily it’s pretty simple to sync MAMP databases via Dropbox.

Move the databases to Dropbox

First of all move your databases from:

/Applications/MAMP/db

To somewhere in Dropbox, for example:

~/Dropbox/Apps/MAMP/db

Now add a symlink from MAMP to Dropbox:

ln -s ~/Dropbox/Apps/MAMP/db /Applications/MAMP/db

Thats’s it!

Disclaimer: This could cause issues if you run MAMP on multiple sync’d machines at the same time… so don’t.