It seems postgres isn't running?
simply-analyze % psql -V
zsh: command not found: psql
Yet I can see that database in TablePlus via DBngin
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
OK, so I am using Valet (all good), and I am creating a new Laravel site with a postgres database.
When I run php artisan migrate, I get this error:
SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: FATAL: database "simply-analyze" does not exist (Connection: pgsql, SQL: select * from information_schema.tables where table_catalog = simply-analyze and table_schema = public and table_name = migrations and table_type = 'BASE TABLE')
This is my .env file
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=simply-analyze
DB_USERNAME=postgres
DB_PASSWORD=
I have created the database in DBngin, where it shows up as PostGreSQL 15.1: 5432
What things should I check? (I am a newbie on the command line)
(When I create a Laravel site with mysql, it asks me to create the database, and that works fine.)
Please or to participate in this conversation.