[PDOException]: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO) Symfony2

前端 未结 1 1161
离开以前
离开以前 2021-01-22 12:39

I tried to create my DB with Symfony2. I used the command:

php app/console doctrine:create:database

The result is:

[PD

1条回答
  •  醉话见心
    2021-01-22 12:59

    You have to check your MySQL credentials. PDO was not able to connect to your MySQL server. Maybe the login is wrong, or the password, or user has not enough rights.

    0 讨论(0)
提交回复
热议问题