prisma-database-setup

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

Updated Aug 9, 2026
One-click install
npx skills add https://github.com/mousetailor/doker_and_cd_pipeline --skill prisma-database-setup-mousetailor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-database-setup
Source: https://github.com/mousetailor/doker_and_cd_pipeline/tree/main/packages/db/.agents/skills/prisma-database-setup
Command: npx skills add https://github.com/mousetailor/doker_and_cd_pipeline --skill prisma-database-setup-mousetailor

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 provider-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 configuration for PostgreSQL, MySQL, SQLite, MongoDB, SQL Server, CockroachDB, and Prisma Postgres, including schema blocks, prisma.config.ts, and environment variables. - Driver Adapter Setup: Maps each database to the correct @prisma/adapter-* package and JS driver, with instantiation examples for Prisma Client. - Version Guardrails: Clarifies that MongoDB projects should stay on Prisma 6.x with prisma-client-js and must not follow the Prisma 7 SQL adapter workflow. - Use Case: When migrating an app from SQLite to PostgreSQL, follow the PostgreSQL reference to update the datasource provider, set DATABASE_URL, install @prisma/adapter-pg, and regenerate Prisma Client. ## Quick Start Ask the AI to configure Prisma for your chosen database, for example: set up Prisma with PostgreSQL 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 provider to postgresql in prisma/schema.prisma, define the datasource URL in prisma.config.ts, and set DATABASE_URL in .env. Then install @prisma/adapter-pg and pg, and pass a PrismaPg adapter instance to PrismaClient.

How do I set up Prisma Client with a driver adapter?

Install prisma and @prisma/client, add a generator block with provider prisma-client and an explicit output path, then run npx prisma generate. Instantiate PrismaClient with the adapter matching your database, such as PrismaPg for PostgreSQL.

Can I use Prisma 7 with MongoDB?

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

Which Prisma driver adapter should I use for MySQL?

Use @prisma/adapter-mariadb with the mariadb JS driver for MySQL or MariaDB. Create a PrismaMariaDb adapter with your host, port, user, password, and database, then pass it to PrismaClient.

Why does Prisma report too many connections on MySQL?

MySQL enforces a connection limit, and each PrismaClient instance creates its own connection pool. Reuse a single PrismaClient instance per process and adjust the pool size with the connection_limit parameter in the connection URL.

What are the limitations of using SQLite with Prisma?

SQLite does not support enums or scalar list types like String[] directly, and write operations lock the database file. For edge or serverless environments, use the @prisma/adapter-libsql adapter with Turso instead.