Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PG::ConnectionBad: FATAL: password authentication failed for user "alphauser"

I'm working on an application in Rails for my college. The application was started by the students from previous year and now it's me and my colleagues turn to continue work on it. I took the application from github, I run bundle install, but when to run rake db:migrate I got this PG::ConnectionBad: FATAL: password authentication failed for user "alphauser". In database.yml I have these

 development:
  adapter: postgresql
  encoding: unicode
  database: alpha_database
  host: localhost
  pool: 5
  username: alphauser
  password: alphapassword

I don't know what to do in this case.

like image 531
Madalina Avatar asked Mar 01 '15 12:03

Madalina


1 Answers

Try to use:

sudo -u postgres createuser --interactive --pwprompt

to add the role and the password

like image 123
Salma Gomaa Avatar answered Oct 15 '22 00:10

Salma Gomaa