Skip to content
Advertisement

Symfony 5 – “An exception occurred in driver: could not find driver”

I’m currently face to this problem. I am really new beginer at Symfony.

Problem : When i create a new db with cli symfony console doctrine:database:create, i am getting these errors :

Iam using php 7.4 with xampp and normaly pdo_sql is installed :

this is my .env file config :

And this is my doctrine.yaml file config :

I have been searching for hours but i cant get any solutions to solve my problem, someone has an idea ? I’m on windows.

Thanks a lot !

Advertisement

Answer

If you want to use Mysql , comment this line DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8" If not comment the other line

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement