Laravel 5 with Postgres SQL

前端 未结 7 1455
深忆病人
深忆病人 2020-12-31 02:56

I’m working on Laravel 5 with postgres as database. I’ve configured postgres 9.4 and pgAdmin III and these are working normally. When I try to run migrate it is giving me e

7条回答
  •  佛祖请我去吃肉
    2020-12-31 03:21

    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 (or php-fpm if using that instead).

提交回复
热议问题