I try to setup my symfony project and everything is fine as I try to create the doctrine database. I wrote the DATABASE_URL in the .env file, which is correct, I think so, but neither my local xampp server nor my web server works.
I always get the same error:
[critical] Error thrown while running command "doctrine:database:create". Message: "An exception occurred in the driver: could not find driver" In ExceptionConverter.php line 119: An exception occurred in the driver: could not find driver In Exception.php line 30: could not find driver In Driver.php line 28: could not find driver
You may not have enabled the
pdo_mysql
extension in yourphp.ini
file. Try uncommenting the line;extension=pdo_mysql
inphp.ini
.Please note that your php console may use a different
php.ini
file than the one you are running your application from.