Deploying Symfony2 app getting fosuserbundle errors

后端 未结 10 2113
北恋
北恋 2020-12-07 01:22

I have installed my Symfony project on another computer with the same specifications, and I receive the following error when I login with fosuserbundle:

Authe

10条回答
  •  感情败类
    2020-12-07 01:50

    I had the same problem. I was able to build and populate the database with php app/console doctrine:schema:update --force; php app/console doctrine:fixtures:load; but the symfony app couldn't access the database.

    The problem was I'd set database_host: 127.0.0.1 in parameters.yml but mysql was expecting me to connect through localhost. Updating parameters.yml fixed the problem. I'm still confused as to why the command line stuff worked...

提交回复
热议问题