I usually put MAMP MySQL /db/db-site-name folder under SVN.
When MAMP starts, it gives the drw——- (600) permission to all the files and dir in that folder. I have a problem because one of these folder is .svn one, that have to be drwxr-xr-x (755), otherwise I can’t access to SVN working copy with my client.
Can anyone help me to set MAMP properly?
You’re sharing the MySQL data files with multiple users? That’s inherently unsafe. There’s no guarantee that someone copying out the raw data files will get a consistent copy. Consider the case of a large data store that takes a long time to actually copy:
Is there any reason the other developers can’t access the database server remotely via TCP? It’s a trivial configuration change to your database connection calls to access a remote server, instead of a local one.
If you must provide the other developers with their own copies of the files, consider sharing a dump of the data rather than the database files themselves.
mysqldumpcan trivially produce a plaintext dump file that can easily be shared with other developers, which they can then import to their own MySQL instances