首页 > 解决方案 > 在 laravel 5.6 中找不到驱动程序,我使用 pgsql (pgadmin4) 作为数据库

问题描述

pdo_pgsqlpgsql启用扩展。postgres bin 路径已设置为全局。

我试图将核心 php 与 pdo 连接,pgsql 工作正常。

但是当尝试从 laravel 5.6 中的命令行迁移 php artisan 时,实际上它不起作用。

Illuminate\Database\QueryException : 找不到驱动程序 (SQL: select * from information_schema.tables where table_schema = public and table_name = migrations)

标签: phplaravel

解决方案


推荐阅读