PostgreSQL fe_sendauth: no password supplied

后端 未结 2 1885
闹比i
闹比i 2021-02-07 03:40

I know there are thousands of questsions like this one here on SO but i\'ve seen them all and i\'m still not able to deal with my problem.

I\'m doing everything using an

2条回答
  •  Happy的楠姐
    2021-02-07 03:55

    psql is using a local socket connection, rails is using localhost over TCP/IP. Local is trusted, localhost requires a password (using md5). You could setup a pgpass file for your rails user: http://www.postgresql.org/docs/current/static/libpq-pgpass.html

提交回复
热议问题