N
Neon2y ago
conscious-sapphire

Can't use Prism

After pasting the schema.prism and .env sections I tried to run this command npx prisma migrate dev --name init However, I get this error: Environment variables loaded from .env Prisma schema loaded from prisma\schema.prisma Datasource "db": PostgreSQL database "REST%20API%20Dave", schema "public" at "ep-purple-smoke-a2unvbp5-pooler.eu-central-1.aws.neon.tech" Error: P1001: Can't reach database server at ep-purple-smoke-a2unvbp5-pooler.eu-central-1.aws.neon.tech:5432 Please make sure your database server is running at ep-purple-smoke-a2unvbp5-pooler.eu-central-1.aws.neon.tech:5432. I even tried to modify timeout and all that like what the docs say: &connect_timeout=10&connection_limit=20&pool_timeout=15 What should I do?
2 Replies
conscious-sapphire
conscious-sapphireOP2y ago
Dave Gray
YouTube
Nest.js REST API with Prisma ORM, Neon Postgres
Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap Learn how to build a Nest.js REST API with Prisma ORM and Neon Postgres. You will set up a serverless postgres database with Neon, integrate Prisma ORM into your Nest.js application, and test the completed REST API. 💖 Support me on Patreon ➜ https://patreon.com/davegra...
wise-white
wise-white2y ago
@Doma are you using WSL? A user has reported a similar issue when using Prisma in WSL: https://discord.com/channels/1176467419317940276/1176467419938701375/1233168994584756296

Did you find this page helpful?