postgres connectivity problems

I don't know what's happening with my postgres installation?  It seems like after updating to postgres 10, rails / rubymine can't find it when I try to recreate my database...


rails db:create
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"unicode", "pool"=>5, "database"=>"portfolio_development"}
rails aborted!
PG::ConnectionBad: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?


it is running and, I can also connect to it using pgadmin 4.

 

Not sure why rails doesn't see it? Or how to correct it in Rubymine.

 

1 comment

Hello,

sorry for the delay. Just to be sure, do you manage to run the same command from the terminal?

0

Please sign in to leave a comment.