Resolved error connection to localhost 5432 refused

Channel Avatar
Comment
X
Share
Resolved error connection to localhost 5432 refused
Resolved error connection to localhost 5432 refused
Resolved error – connection to localhost 5432 refused

Como resolver o error

Install posgresql
brew install postgresql

Restart Service
brew services restart postgresql
fonte:

Create database
createdb postgres

Create user
createuser admin

IDE Utilizada
Intellij

Contexto
Clonando uma aplicação do github e compilando com a IDE Intellij, tive problemas em replicar o ambiente na minha máquina local, problema principal com o error

psql: error: connection to server on socket /”/tmp/.s.PGSQL.5432/” failed: No such file or directory
Is the server running locally and accepting connections on that socket?

Referencias para resolução

https://stackoverflow.com/questions/13410686/postgres-could-not-connect-to-server

https://stackoverflow.com/questions/30641512/create-database-from-command-line

Take the opportunity to connect and share this video with your friends and family if you find it useful.

Read Also

Leave a Reply

Your email address will not be published. Required fields are marked *