wasp icon indicating copy to clipboard operation
wasp copied to clipboard

Unable to Connect to Prisma Accelerated PostgreSQL with Wasp

Open radswiat opened this issue 7 months ago • 4 comments
trafficstars

Issue Overview:

I’m starting a brand-new project and trying to connect to Prisma’s accelerated PostgreSQL database (Prisma Data Platform), but I’m running into issues. Despite configuring my environment and database settings, I am unable to start Wasp or migrate the database.

What I’ve Done:

  1. Prisma Schema (schema.prisma):
   datasource db {
     provider = "postgresql"
     url      = env("DATABASE_URL")
   }
  1. Environment Variable (env.server)
   DATABASE_URL="prisma+postgres://accelerate.prisma-data.net/?api_key=<MY_API_KEY>"
  1. Problem Statement:

While running wasp start or migrate db, I am getting the following error:

The database needs to be running in order to execute this command. You can easily start a managed dev database with `wasp start db`.

What I'm doing wrong? Thanks!

radswiat avatar Apr 11 '25 13:04 radswiat