Error Returned From Database: password authentication failed for user "postgres"
#2531
Unanswered
DennisTheMenace780
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I see you are following the zero2prod book, I am having the same problem also. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to run
cargo test
but I keep getting password authentication issues coming fromsqlx
that I can't quite debug. As far as I am aware,sqlx
reads from a top-level.env
file with a DB URL, this is what I have in my.env
:DATABASE_URL="postgres://postgres:password@localhost:5432/newsletter"
I have included my tests below with
sqlx
and maybe something might spring out, but I can't really figure out why it won't pick up the password.Beta Was this translation helpful? Give feedback.
All reactions