prisma-database-setup

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up Prisma ORM with a database involves provider-specific schema syntax, connection strings, driver adapters, and version constraints that differ across PostgreSQL, MySQL, SQLite, MongoDB, SQL Server, and CockroachDB. This Skill provides the correct configuration for each provider so you avoid misconfigured clients and connection failures. ## Core Features & Use Cases - Provider-specific setup guides: Step-by-step configuration for PostgreSQL, MySQL, SQLite, MongoDB, SQL Server, CockroachDB, and Prisma Postgres, including schema blocks, prisma.config.ts, and .env connection strings. - Driver adapter selection: Maps each database to the correct @prisma/adapter-* package and JS driver, with instantiation examples for Prisma Client. - Version guardrails: Enforces the Prisma 7 SQL adapter workflow while keeping MongoDB projects on Prisma 6.x with prisma-client-js. - Use Case: You are switching a Next.js app from SQLite to PostgreSQL. The Skill gives you the new datasource block, the @prisma/adapter-pg setup, the DATABASE_URL format, and the regenerated Prisma Client wiring. ## Quick Start Ask the AI to configure Prisma to connect to your database, for example by saying "set up Prisma with PostgreSQL in my project".

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 URL in prisma.config.ts, and set DATABASE_URL in .env. Install @prisma/adapter-pg and pg, then pass a PrismaPg adapter instance to PrismaClient.

Which Prisma driver adapter should I use for my database?▼

Use @prisma/adapter-pg for PostgreSQL, CockroachDB, and Prisma Postgres; @prisma/adapter-mariadb for MySQL; @prisma/adapter-better-sqlite3 or @prisma/adapter-libsql for SQLite; and @prisma/adapter-mssql for SQL Server. MongoDB uses no SQL adapter.

Can I use Prisma 7 with MongoDB?▼

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

Why does Prisma report "Can't reach database server"?▼

This usually means the host or port is wrong, a firewall blocks the connection, or the database is not running. Verify the DATABASE_URL format, check that special characters in passwords are URL-encoded, and confirm the server is up.

What are the limitations of using SQLite with Prisma?▼

SQLite does not support enums or scalar list types like String[], and write operations lock the database file, limiting concurrency. For edge or serverless use, consider the LibSQL/Turso adapter instead of better-sqlite3.