Is the Server Running on Host "Localhost" (::1) and Accepting Tcp/Ip Connections on Port 5432

Is the server running on host localhost (::1) and accepting TCP/IP connections on port 5432?

You most likely ran out of battery and your postgresql server didn't shutdown correctly.

The easiest workaround is to download the official postgresql app and launch it: it will force the server to start (http://postgresapp.com/)

connection to server at localhost , port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?

The problem is that /etc directory needs to be root user, so I changed it to root user, and opened 5432 port, in my case /etc directory owned by other user, now everything is working.

Rails in linux. Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?

Looks like your postgres is listening on a unix socket (a special kind of file), not a tcp one.

You can try connecting via that socket (location on your system will probably be different, you need the directory where .s.PGSQL.5432 file is located):

# database.yml
host: '/var/run/postgresql'
database: ...


Related Topics



Leave a reply



Submit