简体   繁体   中英

Migration error in laravel 5.5 with PostgreSQL

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

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)

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.

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 :)

在此处输入图片说明

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM