1

I've been trying to update my database with a Symfony 4 project.

When, connected in ssh I do php7.1-cli bin/console doctrine:schema:update

I have the following error

errors

I don't know what this means.

Here's my .env

.env and my doctrine.yaml

doctrine.ymal

M. Eriksson
  • 13,450
  • 4
  • 29
  • 40
  • 4
    It should be sufficient to have the database connection string as URI in the `.env` file. You don't need the config in your yaml files anymore. Also remove the addtional variables like `DATABASE_USER`. – Chrisissorry Dec 18 '18 at 07:51
  • @Chrisissorry has right, you're configuration is not correct with `.env` usage. Other thing, you are using mysql and it's possible you need to change `localhost` string need to be change to `127.0.0.1` as explain [here](https://stackoverflow.com/a/9251924/7256369). – Pouette Dec 18 '18 at 10:26

0 Answers0