我尝试设置我的Symfony项目,一切都很好,但是当我尝试创建Doctrine数据库时出现问题。
我在.env文件中编写了我的DATABASE_URL,这是正确的,至少我认为是正确的,但是无论是我的本地xampp服务器还是我的Web服务器都不起作用。
我总是收到相同的错误:
[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
DATABASE_URL
值添加到您的帖子中。 - Jeroen van der Laan