I am trying to create a Mysql database for a Symfony 5.1 application, with Doctrine.
I use PHP 7.4.11 with extension=pdo_mysql activated in php.ini, and working fine in php info. Mysql 5.7.11.
In .env, I have
and in doctrine.yaml :
dbal: driver: 'pdo_mysql' charset: utf8mb4 url: '%env(resolve:DATABASE_URL)%'
Now, when I want to create my new database (symerp), I use the cmd :
php bin/console doctrine:database:create
And it fails, with error "In AbstractMySQLDriver.php line 110: An exception occurred in driver: could not find driver"
I found plenty of issues like this one in forums, and everytime the suggestions where "check your extention=pdo_mysql in your php.ini"…But in the end, the issue was not solved !
Did somebody face this issue and SOLVED it ?
Thanks in advance
Source: Symfony Questions
Was this helpful?
0 / 0