DEV Community

Discussion on: Setting up a Node API with Postgres and Knex

Collapse
 
lumsrouge profile image
lumsrouge

Hi! Thank you very much for writing this article.
I am trying to follow your instructions but I need to set up the DB locally.
I am failing with the part where I have set the URL in the ".env" file.

I keep having this error:
Knex:Error Pool2 - error: password authentication failed for user "username"

Tried different URL configuration but none is working. Do you have an Idea of what this should look like?

Thx

Collapse
 
easybuoy profile image
Ekunola Ezekiel

Which database are you using? The error says the password is not correct for the username provided, so maybe check that