PrismaP
Prisma3w ago
4 replies
Sheik Mostafizur

Authentication failed against the database server in NestJS + Prisma

* Prisma queries like this.prisma.user.findUnique() fail.
* Logs show:

  Authentication failed against the database server, the provided database credentials for `postgres` are not valid


The database connection credentials (DB_USER, DB_PASSWORD, DB_HOST, etc.) in your environment variables or .env file are incorrect.

I am using Docker environment. And this happening when on Oracle Linux VPS. But my local pc working properly.
image.png
Was this page helpful?