Reputation: 54949
I am using Prisma as ORM in my nextjs app. I am initiating the Prisma client in a lib file and importing the same where ever i need the instance. But still am getting the following error.
Error querying the database: db error: FATAL: too many connections for role "qcjoaamjgbnxjx"
prisma-client:
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
export default prisma;
Upvotes: 7
Views: 14188
Reputation: 141
I got the same error in my local computer. but my error was due to I have opened too many panels in pgAdmin. my database is Postgres. after removing all panels. my issue is solved
Upvotes: 2