Created a new application in laravel 5.5 and done configuration with postgres
also set default db driver pgsql in database.php , but while running laravel migrate artisan command getting below error
but connection working in core php
i didnt getting what is the wrong with laravel with PostgreSQL
Laravel 5 + PostgreSQL: "Database [postgres] not configured." Error
Check and make sure the pdo postgress driver is installed and loaded correctly.
and quoting from
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)
ie, 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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.