2

Created a new application in laravel 5.5 and done configuration with postgres

enter image description here

also set default db driver pgsql in database.php , but while running laravel migrate artisan command getting below error

enter image description here

but connection working in core php

enter image description here

i didnt getting what is the wrong with laravel with PostgreSQL

Rathilesh C
  • 131
  • 2
  • 14

2 Answers2

0

Laravel 5 + PostgreSQL: "Database [postgres] not configured." Error

Check and make sure the pdo postgress driver is installed and loaded correctly.

and quoting from

Laravel 5 with Postgres SQL

As you said you already choosed Default Database as Postgres SQL

'default' => 'pgsql', It is a must that you need to uncomment the pdo and postgres shared object in your php configuration settings (php.ini)

i.e., You need to uncomment the following lines in your php.ini

extension=pdo_pgsql.so extension=pgsql.so Note :

Don't forget to stop and start your apache after doing this changes.

Giovanni S
  • 2,050
  • 18
  • 33
0

Issue fixed, Actually my PostgreSQL version was 9.6 and i updated in to 10.1 now laravel 5.5 with PostgreSQL 10.1 migration working like a champ :)

enter image description here

Rathilesh C
  • 131
  • 2
  • 14