Symfony: An exception occured in driver: could not find driver with mysql
In case this helps others: I've encountered the same problem, when running a command that needed the database (such as bin/console make:migration
), but for a totally different reason. I was running the command from my computer instead of running it inside the php container. Running it inside the php container solved the problem.