thecodingmachine / symfony-vuejs

Source code of the tutorial "Building a single-page application with Symfony 4 and Vue.js"
https://thecodingmachine.io/building-a-single-page-application-with-symfony-4-and-vuejs
MIT License
178 stars 50 forks source link

Impossible to try project : php bin/console doctrine:migration:migrate #22

Closed loic-roux-404 closed 5 years ago

loic-roux-404 commented 5 years ago

Sorry i think it's simple to fix but i try everything on the docker compose file and it's impossible to get a correct access to database with symfony... Even if i use the initial code of the repo without touching to the files i get this error. phpmyadmin is working correctly but when i use doctrine to migrate tables from your files this error is throwed :

In AbstractMySQLDriver.php line 113:
An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory

I know 2002 error coming from a database issue but i don't find how to fix it. I get the same error with fixture command.

Thanks for you help !

loic-roux-404 commented 5 years ago

Sorry i do stupid docker beginner things... fixed with docker-compose exec app bin/console custom:command