Go to the mamp control panel, does it show the MySQL Server as running in the top right hand corner?
try using the mySQL GUI Tools to access the MySQL Server:
5.0.html
If it is running and still have he same problem, see the following thread on the mamp forum:
viewtopic.php?t=679&start=0&postdays=0&postorder=asc&highlight=code+2002