I’m currently using MAMP for local PHP development on OS X. It works ok, except for a tendency to bug out when starting up again after first quitting the application once. So if you get the “Error: Could not connect to MySQL server!” notice, here’s a fix:
- Quit MAMP
- Open the terminal and type:
killall -9 mysqld
- Restart MAMP
That should do it. If it’s still not working, this forum thread has more details.