wasp
wasp copied to clipboard
Unable to Connect to Prisma Accelerated PostgreSQL with Wasp
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:
- Prisma Schema (schema.prisma):
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
- Environment Variable (env.server)
DATABASE_URL="prisma+postgres://accelerate.prisma-data.net/?api_key=<MY_API_KEY>"
- 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!