Authentication Issues with Postgresql, Docker, WSL and Drizzle

Hi Guys, I have an issue where WSL network authentication fails with pg driver with drizzle-kit. I've been spending hours trying figure out but unable to find a solution. Is there any work around to this? Or do I need to manually create each table? Thanks~
1 Reply
kcstarless
kcstarlessOP2mo ago
i was able to find a solution
ports:
- "5433:5432"
ports:
- "5433:5432"
just had to change the port address I was just thinking the error drizzle is responding with should be more specific and detail. Instead of giving authentication error like
error: password authentication failed for user "postgres"
error: password authentication failed for user "postgres"
it should give correct response like
connection refused
connection refused
or
could not connect
could not connect
or even
port conflict
port conflict
. Just my thought.

Did you find this page helpful?