npx prisma migrate dev --name init from tutorial not working
Once I get to the part in the supabase prisma tutorial where I run the command
npx prisma migrate dev --name init
the terminal gets stuck at:
Any ideas what the issue is here?Solution:Jump to solution
Hey @Nurul that solution works! So does this mean I won't be using the connection pooler?
5 Replies
Hey @gaurav1998 👋
Can you try using the non-pooled connection string, the one with port 5432 and check?
Solution
Hey @Nurul that solution works! So does this mean I won't be using the connection pooler?
No, you can. You just need a direct URL (as in not a pooled connection) for migrations. This part of our docs goes into a bit more detail: https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/databases-connections/pgbouncer#prisma-migrate-and-pgbouncer-workaround
Configure Prisma Client with PgBouncer | Prisma Documentation
An external connection pooler like PgBouncer holds a connection pool to the database, and proxies incoming client connections by sitting between Prisma Client and the database. This reduces the number of processes a database has to handle at any given time.
thank you so much i just tried this and it works
I am glad to hear 😄