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

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Hi Giovanni thank you for your response , i already enabled php_pgsql and php_pdo_pgsql
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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.