Note that there are some explanatory texts on larger screens.

plurals
  1. POrake db:create:all FATAL : password authentication failed
    primarykey
    data
    text
    <p>I am trying to follow this <a href="http://railscasts.com/episodes/342-migrating-to-postgresql" rel="nofollow noreferrer">railscast</a> tutorial. Now I am in the step, where you create the database with rake db:create:all, but I got this error message :</p> <pre><code>FATAL: password authentication failed for user aldila </code></pre> <p>I made the user aldila through pgAdmin, by right-clicking the login role and add user aldila with password.</p> <p>So, here is my database.yml :</p> <pre><code>development: adapter: postgresql host: localhost encoding: unicode database: my_app_development pool: 5 username: aldila password: *mypass* test: adapter: postgresql host: localhost encoding: unicode database: my_app_test pool: 5 username: aldila password: *mypass* production: adapter: postgresql host: localhost encoding: unicode database: my_app_production pool: 5 username: aldila password: *mypass* </code></pre> <p>Here is my pg_hba.conf</p> <pre><code># TYPE DATABASE USER ADDRESS METHOD # IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5 # Allow replication connections from localhost, by a user with the # replication privilege. #host replication postgres 127.0.0.1/32 md5 #host replication postgres ::1/128 md5 </code></pre> <p>Maybe there is something's wrong with the installing of PostreSQL, because if I type psql --version on my command, this is what I got :</p> <pre><code>'psql' is not recognized as an internal or external command, operable program or batch file. </code></pre> <p>But I have no idea what went wrong. I install it from <a href="http://www.postgresql.org/" rel="nofollow noreferrer">here</a> and pick download the installer from EnterpriseDB for all supported versions.</p> <p>I know there are already similar questions like this, but I follow <a href="https://stackoverflow.com/questions/5817301/rake-dbcreate-fails-authentication-problem-with-postgresql-8-4">this one</a> and <a href="https://stackoverflow.com/questions/13439276/rails-deploying-to-heroku-many-problems">this one</a>, but I still get the same error message. I would be really appreciated, if anyone could help. Thanks</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload