-
QuestionHello, I am using Prisma 7.1.0 and after initilizing it i do the npx prisma db pull but i get the error in the photo How to reproduce (optional)Expected behavior (optional)No response Information about Prisma Schema, Client Queries and Environment (optional)// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
generator client {
provider = "prisma-client"
output = "../generated/prisma"
}
datasource db {
provider = "postgresql"
}
// Add any relevant Prisma Client queries here
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
even though your you need to point the datasource to datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}one more thing to watch out for with docker networking:
DATABASE_URL="postgresql://festivalapp:festivalapp@postgres:5432/festivalapp"
# ^ this should be the postgres service name
|
Beta Was this translation helpful? Give feedback.
-
|
Is this resolved now? |
Beta Was this translation helpful? Give feedback.
-
|
Thank you all for your answers, in fact I redowloaded Prisma so it started reading the .env however the P1000 error persisted. What I did then was a modification inside windows following the steps mentionned in this article. And it worked ! |
Beta Was this translation helpful? Give feedback.

Thank you all for your answers, in fact I redowloaded Prisma so it started reading the .env however the P1000 error persisted. What I did then was a modification inside windows following the steps mentionned in this article. And it worked !
https://sweabhishek.medium.com/error-p1000-authentication-failed-against-database-server-the-provided-database-credentials-3793c85f8a77