mercredi 17 avril 2019

Could not find driver (PDO exception with Laravel)

I have researched this problem extensively and I have tried everything that has been suggested, but I think I may have missed something. I have a laravel project with the following configuration for .env:

DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=oamileage
DB_USERNAME=postgres
DB_PASSWORD=********

I have also uncommented the following line in php.ini:

;extension=pdo_pgsql -> extension=pdo_pgsql

I get the following error when I try to use php artisan migrate:

Illuminate\Database\QueryException  : could not find driver (SQL: select * from information_schema.tables where table_schema = public and table_name = migrations)

A side note: I already have pgsql up and running for another project of mine and it's working without a problem.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire