prisma-database-setup

Configure Prisma ORM with PostgreSQL, MySQL, SQLite, MongoDB, and other database providers.

1|Updated Jun 5, 2026
One-click install
npx skills add https://github.com/sristigupta04/Airbnb-app --skill prisma-database-setup-sristigupta04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-database-setup
Source: https://github.com/sristigupta04/Airbnb-app/tree/main/Full-stack/.agents/skills/prisma-database-setup
Command: npx skills add https://github.com/sristigupta04/Airbnb-app --skill prisma-database-setup-sristigupta04

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up Prisma ORM with the correct database provider, connection string, driver adapter, and client generation involves many version-specific details that are easy to get wrong, especially with the differences between Prisma 6 and Prisma 7 workflows. ## Core Features & Use Cases - Provider-Specific Guides: Step-by-step setup for PostgreSQL, MySQL, SQLite, MongoDB, SQL Server, CockroachDB, and Prisma Postgres, including schema configuration, environment variables, and connection string formats. - Driver Adapter Setup: Maps each database to the correct @prisma/adapter-* package and JS driver, with instantiation examples for Prisma Client. - Version Guidance: Clarifies that MongoDB projects should stay on Prisma 6.x with prisma-client-js, while SQL providers use the Prisma 7 adapter workflow. - Use Case: When initializing a new project with PostgreSQL, follow the reference to set the datasource provider, configure prisma.config.ts, install @prisma/adapter-pg, and generate a working Prisma Client. ## Quick Start Ask the AI to configure Prisma for your database, for example: "Set up Prisma with PostgreSQL in my project including the driver adapter and client generation."

Frequently Asked Questions about prisma-database-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Prisma with PostgreSQL?

Set the datasource provider to postgresql in prisma/schema.prisma, define the DATABASE_URL in prisma.config.ts, then install @prisma/adapter-pg and pg. Instantiate PrismaClient with the PrismaPg adapter using your connection string.

Which Prisma driver adapter should I use for my database?

PostgreSQL and CockroachDB use @prisma/adapter-pg, MySQL uses @prisma/adapter-mariadb, SQLite uses @prisma/adapter-better-sqlite3 or @prisma/adapter-libsql for Turso, and SQL Server uses @prisma/adapter-mssql. MongoDB does not use a SQL adapter.

Can I use Prisma 7 with MongoDB?

MongoDB projects should stay on the latest Prisma 6.x release with the prisma-client-js generator and the connection URL in schema.prisma. Prisma 7's SQL adapter workflow does not provide a supported MongoDB upgrade path.

Why does Prisma report transactions not supported on MongoDB?

MongoDB transactions require a replica set; standalone instances do not support them. Ensure your MongoDB deployment is configured as a replica set, which Atlas clusters are by default.

What are the limitations of SQLite with Prisma?

SQLite does not support enums or scalar list types like String[], and write operations lock the database file. Prisma polyfills enums as strings, but concurrent write workloads may need a client-server database instead.

How do I fix Prisma authentication failed errors?

Verify the user and password in your connection string, and URL-encode special characters in passwords. Also confirm the host, port, and schema query parameter such as ?schema=public for PostgreSQL are correct.