Relational Databases
Overviewβ
This guide walks you through integrating Prisma ORM into an existing Node.js or TypeScript project. You'll learn how to:
- Connect Prisma to your MySQL database
- Use the Prisma CLI
- Generate a Prisma Client for database access
- Introspect your existing database schema using Prisma Introspection
Prerequisitesβ
Before you begin, ensure you have:
- An existing Node.js project with a
package.json
file - Node.js installed (see system requirements)
- A running MySQL database with at least one table
π You'll need your database connection URL, including credentials.
π‘ Donβt have a database yet? Try our Quickstart guide with SQLite to explore Prisma ORM.
Step 1: Set Up Prismaβ
-
Open your terminal and navigate to the project directory containing your
package.json
. -
Install Prisma CLI as a development dependency:
npm install prisma --save-dev