我尝试设置我的 symfony 项目,一切都很好,因为我尝试创建学说数据库。我在 .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
Run Code Online (Sandbox Code Playgroud)