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

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

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -