this is an issue in the MAMP configuration when creating a database connection.
t is an issue between the PHP server and MySQL server. the basic PHP functions my be working fine, but there is an issue when trying to create the database connection to the MySQL server.
did you go to the site that I linked to:
solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/
ultimately, this boils down to a server configuration issue.
you would the same error message if you try to create a basic Dreamweaver recordset.