小编Bün*_*lin的帖子

Symfony 6 / Doctrine - 驱动程序中发生异常:找不到驱动程序

我尝试设置我的 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)

php mysql symfony

4
推荐指数
2
解决办法
1万
查看次数

标签 统计

mysql ×1

php ×1

symfony ×1