0

I am trying to create Database for the New Project in ror.

I implement this command rake db:create it show me error like below.

Couldn't create database for {"adapter"=>"postgresql", "username"=>"postgres", "pool"=>5, "timeout"=>5000, "database"=>"demo_development"}
FATAL:  Peer authentication failed for user "postgres"

Couldn't create database for {"adapter"=>"postgresql", "username"=>"postgres", "pool"=>5, "timeout"=>5000, "database"=>"demo_test"}

please help me to come out of it. Thank you in advance

4
  • What's in your pg_hba.conf? Commented Apr 1, 2017 at 13:47
  • Possible duplicate stackoverflow.com/questions/9987171/… Commented Apr 1, 2017 at 13:47
  • pg_hba.conf its empty @SebastiánPalma Can you help me to solve it. Commented Apr 1, 2017 at 20:10
  • Easiest solution is to try a clean installation, what OS are you using? Commented Apr 1, 2017 at 20:18

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.