我是Simphony的新人。我要遵循的教程开始,告诉我在终端上执行此命令:
php app/console generate:doctrine:entity
执行命令时,会发生以下错误:
[Doctrine\DBAL\Exception\ConnectionException]
An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[HY000] [2002] No such file or directory
[PDOException]
SQLSTATE[HY000] [2002] No such file or directory
我搜索过,但没有找到解决方案。
答案 0 :(得分:0)
可能您没有创建数据库,尝试使用它创建它 app / console doctrine:database:create