2
I’m using Postgresql "5.4.*"
Using Mysql, after the php artisan migrate
tdo ok.
But now I need to use Postgresql in the project, but after changing the DB:
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=laravel-api
DB_USERNAME=postgres
DB_PASSWORD=1234
Give me this mistake:
D:\wamp64\www\laravel\laravel-api>php artisan migrate
[Illuminate\Database\QueryException]
could not find driver (SQL: select * from information_schema.tables where table_schema = public and table_name = migrations)
[PDOException]
could not find driver
Detail, the environment is Windows.
Enabled the postgres extension in php.ini?
– rray
Put the database configuration file
database.php
complete.– NoobSaibot
I am using Postgresql "5.4. *" --> There is no such version of Postgresql. The latest is 11.1.
– anonimo