Doctrine 2 command line tool; MAMP and mysql.sock
问题 I grabbed the CI2/Doctrine2 from Wildly Inaccurate. I'm trying to start using it, but before I'm actually getting to work with it, I wanted to make sure everything works. However, when I try the command line tool, I run into the following error: $ ./doctrine orm:schema-tool:create ATTENTION: This operation should not be executed in a production environment. Creating database schema... Warning: PDO::__construct(): [2002] Socket operation on non-socket (trying to connect via unix:///var/mysql