Fixing an issue with a missing mysql.sock file on a mac?
/Applications/MAMP/tmp/mysql/mysql.sock
Should be the default location for the mysql socket. To check where MAMP will create the socket you should consult
/Applications/MAMP/bin/startMysql.sh
to check where MAMP is creating the socket. Perhaps there might be another location specified.