Troubleshooting
Fix Prisma error P3014
Resolve permission denied to create database without weakening tenant isolation.
6 minute read · Updated September 2026What the error means
Prisma migrate dev tried to create a shadow database using DATABASE_URL. The Renviq application role does not have CREATEDB, so PostgreSQL correctly returned permission denied.
Error: P3014
Prisma Migrate could not create the shadow database.
Original error: ERROR: permission denied to create databaseThe Renviq fix
- 1Open Console → Databases.
- 2Choose Connect on the affected application database.
- 3Open Connect with Prisma.
- 4Create and test an isolated shadow database.
- 5Copy both generated environment variables and prisma.config.ts.
- 6Restart the development shell so it reloads .env.
- 7Run pnpm prisma migrate dev again.
Verify configuration
# Confirm the variables exist in the current development environment
$env:DATABASE_URL
$env:SHADOW_DATABASE_URL
pnpm prisma validate
pnpm prisma migrate devDo not grant CREATEDB
Granting CREATEDB to the application role weakens shared-cluster isolation and bypasses Renviq provisioning, quotas, ownership, and audit controls. Do not use the production database itself as its own shadow database.
Still failing?
Make sure the shadow credential is unexpired, the copied URL is complete, and Prisma is loading the .env file you edited. Use the wizard’s Test action or replace the shadow database.
Was this guide useful?
Get helpIf anything is unclear or incorrect, tell the support team.