0

These are my database data which are stored in .env file

DB_CONNECTION=pgsql
DB_HOST=myDB
DB_PORT=5432
DB_DATABASE=stuff
DB_USERNAME=myusername
DB_PASSWORD=mypassword

When I try to run php artisan migrate in cmd. For starter, I've already added extension=pgsql and extension=pgsql.so in php.ini file located in C:\xampp\php. There is an error such,

could not find driver (Connection: pgsql, SQL: select * from information_schema.tables where table_catalog = myDB and table_schema = public and table_name = migrations and table_type = 'BASE TABLE')

I've already installed postgresql, laravel, composer, xaamp. I've already added extension=pgsql and extension=pgsql.so in php.ini file.

Zoey
  • 1
  • 1
  • Please see the existing Q&A and check with `php --ini` on the command line you've edited the right php.ini for the command line. More details and things to double-check in the linked Q&A. – hakre Jul 29 '23 at 09:55

0 Answers0