Quicktip: SQLSTATE[HY000] [2002] Not a directory trying doctrine:schema:create

If you are using MAMP and trying to execute doctrine:schema:create or anything db related you may encounter that error, solution is simple – you need to create symlink to mysql.sock:


  1. I am experiencing the same problem all of a sudden on my mac, and the solution doesn’t help.  I think I had already done this before, when I installed mysql and doctrine a few months ago.


    I noticed that my Mac was installing a new version of 10.10 could this be a problem?


    Any other ideas?

Leave a Reply