I have a Laravel 5.8 running locally on my macOS Big Sur 11.4
“laravel/framework”: “5.8.*”,
php –version
WARNING: PHP not recommended PHP is included with macOS for compatibility with legacy software. Future versions of macOS will not include PHP. PHP 7.3.24-(will be removed in future macOS) (cli) (build: May 8, 2021 09:40:37) ( NTS ) Copyright (c) 1997-2018 PHP Group Zend Engine v3.3.24, Copyright (c ) 1998-2018 Zend Technologies
phpinfo(); I checked, I understand
Uploaded Configuration File
/Applications/MAMP/bin/php/php7.4.12/conf/php.ini. …..
[PostgreSQL]
; Allow or block permalinks. ; https://ift.tt/3r6dSNq pgsql.allow_persistent = On ; Always detect broken persistent connections with pg_pconnect() . ; The auto-reset feature requires some overhead. ; https://ift.tt/3nQsmyU pgsql.auto_reset_persistent = Off ; Maximum number of permalinks. -1 means no limit. ; https://ift.tt/3p4raYh pgsql.max_persistent = -1 ; Maximum number of connections (persistent+non-persistent). -1 means no limit. ; https://ift.tt/3cOLLKi pgsql.max_links = -1 ; Ignore PostgreSQL backends or don’t get the notification message. ; Notification message logging requires some overhead. ; https://ift.tt/3DV1y63 pgsql.ignore_notice = 0 ; Log PostgreSQL backends Notification message or not. ; Unless pgsql.ignore_notice=0, the module cannot log the warning message. ; https://ift.tt/3HPKTTY pgsql.log_notice = 0
I found these, they haven’t commented yet.
Recently, I cannot successfully run php artisan migration, I kept getting:
IlluminateDatabaseQueryException : driver not found (SQL: select * from info_schema.tables where table_schema = public and table_name = transitions and table_type = ‘BASE TABLE’)
I’m using psql not MySQL.
DB_LOCAL_CONNECTION=pgsql DB_LOCAL_HOST=localhost DB_LOCAL_PORT=5432 DB_LOCAL_DATABASE=dbName DB_LOCAL_USERNAME=postgres DB_LOCAL_PASSWORD=
How can I get it to work again?
via Mohamed of Chebli