ruby on rails - bundle exec rake db:create error -
keep getting when run bundle exec rake db:create:
could not connect server: connection refused server running on host "localhost" (::1) , accepting tcp/ip connections on port 5432? not connect server: connection refused server running on host "localhost" (127.0.0.1) , accepting tcp/ip connections on port 5432? any ideas how fix this?
thats because of permission issue. navigate /etc/postgresql/<your version of pg>/main/ , open pg_hba.conf.
there search line that'd local postgres peer , replace local trust. run sudo service postgresql restart in terminal.
Comments
Post a Comment