PG::ConnectionBad: FATAL: password authentication failed for user “alphauser”

后端 未结 4 834
情书的邮戳
情书的邮戳 2021-01-02 03:40

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 wo

4条回答
  •  一整个雨季
    2021-01-02 04:27

    You have to create corresponding user and database manually like this:

    in shell: psql

    then:

      create user alphauser with password 'alphapassword';
      create database alpha_database owner alphauser;
      alter user alphauser superuser createrole createdb replication;
      \q
    

    don't forget semicolons.

提交回复
热议问题