i have installed postgres db on my mac machine with brew installer and tried to run doctrine:database:create command to create a database. But i am getting a connection failure
but the connection successful with dbeaver client.
An exception occurred in driver: SQLSTATE[08006] [7] could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Cannot assign requested address
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
i tried updating the below parameters of postgres and restart the service, but still no luck in connection
listen_addresses = '*'
port = 5432
Could someone please help me fix the connection? Thanks in advance :)