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

Popular posts from this blog

php - Autoloader issue not returning Class -

C++ Program To Find Smallest and Largest Number In Array -

java - How to put two numbers separated by a space into two different arrays -