Symfony 6/Doctrine - DriverException: Driver not found
P粉729518806
P粉729518806 2024-01-21 16:23:09
0
1
658

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


P粉729518806
P粉729518806

reply all(1)
P粉198814372

You may not have enabled the pdo_mysql extension in your php.ini file. Try uncommenting the line ;extension=pdo_mysql in php.ini.

Please note that your php console may use a different php.ini file than the one you are running your application from.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!