UsernameHere
UsernameHere
PPrisma
Created by UsernameHere on 3/6/2025 in #help-and-questions
Can't use a locally hosted postgresql database on Prisma.
It keeps throwing the error 'Error validating datasource db: the URL must start with the protocol prisma://', though I see many people using it all the time. My schema is
generator client {
provider = "prisma-client-js"
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client-js"
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
, and then normal models. I genuinely cannot figure out for the life of me on why I can't do this.
10 replies