Symfony: An exception occured in driver: could not find driver with mysql Symfony: An exception occured in driver: could not find driver with mysql windows windows

Symfony: An exception occured in driver: could not find driver with mysql


You must install mysql : sudo apt install php-mysql


Ok, I made a very stupid mistake. I was editing the php.ini file, but I didn't renamed it to php.ini (it was php.ini-prod). Afterwards I just had to put the correct path in extension_dir and it's working.

Hopefully this helps others.


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.