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 - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -