Troubleshooting “No such file or directory” when running `php app/console doctrine:schema:create`

后端 未结 12 1293
臣服心动
臣服心动 2020-12-04 23:35

I am new to Symfony2 (beta4) and Doctrine and am having issues when i try to create the DB schema via command line.

Here\'s the error:

$ php app/cons         


        
12条回答
  •  无人及你
    2020-12-05 00:21

    Too late but I hope it can help someone.

    Just today I fall into a similar situation (but in other context, I was trying to create entities from db).

    I solved it simply modifying de database_host from "localhost" to "127.0.0.1" in the parameters.ini file.

    I think my Mysql instance is running only via TCP and not socket and because this when use database_host="localhost" it fails.

提交回复
热议问题