what did you enter for the MySQL Server name in the connection file? Try using the local loop back address:
instead of localhost.
if that does not solve the problem, see this page for details:
In some cases, I have had people report that the only way to fix the issue was to re install MAMP