Error validating datasource `db`
Hello, I am using 2 postgres dbs and have followed -https://www.prisma.io/docs/guides/multiple-databases guide to set them up. I am deploying on Railway.
On running yarn dev I am getting the following error - Error validating datasource db: the URL must start with the protocol prisma:// or prisma+postgres://
Not sure what is amiss, please help!
How to use multiple databases in a single app | Prisma Documentation
Learn how to use multiple Prisma Clients in a single app to connect to multiple databases, handle migrations, and deploy your application to Vercel.

6 Replies
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the
#ask-ai channel awaits if you're curious!How are you generating the Prisma Client?
Are you running
npx prisma generate? Are you passing any additional flags in the generate command? "generate": "yarn prisma generate --schema ./prisma-app-database/schema.prisma",
"generate-modules": "yarn prisma generate --schema ./prisma-modules-database/schema.prisma",



Merging both schemas in single DB solved my error