I installed MAMP succesfully on my Macbook and it worked fien. But now as I tried to start it, it can only start Apache server, not MySQL-server as I click the button "Start Servers". How can I solve this problem?

http://localhost:8888/drupal-7.0/ says

PDOException: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/Applications/MAMP/tmp/mysql/mysql.sock' (2) in lock_may_be_available() (line 165 of /Applications/MAMP/htdocs/drupal-7.0/includes/lock.inc).

link|improve this question
what does my.cnf look like? – egorgry Apr 7 '11 at 13:03
Did you install mysql yourself or did you use the one that came with MAMP? – Bart De Vos Apr 7 '11 at 13:10
Does /Applications/MAMP/tmp/mysql/mysql.sock exist? Have you considered stopping MAMP and then wiping the contents of /Applications/MAMP/tmp/? – Ekevoo Apr 7 '11 at 13:18
Where can I find my.cnf? I installed MAMP and mysql came withj that package. It looks like mysql.sock does not exist. I haven't wiped the contents. – macbeginner Apr 7 '11 at 13:24
Now I wiped the contents but that didn't solve the problem. – macbeginner Apr 12 '11 at 14:07
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.