Please make sure your database server is running at `localhost`:`5432` - Prisma Nest js -Down migration error

Viewed 353

I am using Nest js + Prisma + Postgres in the Backend of my website. I am trying to down migrate by following the document https://www.prisma.io/docs/guides/database/developing-with-prisma-migrate/generating-down-migrations it is working fine until it reached this command.

           npx prisma db execute --file ./down.sql --schema prisma/schema.prisma

And it is throwing this error

Error: P1001

Can't reach database server at localhost:5432

Please make sure your database server is running at localhost:5432.

I am using Prisma 3.15 .all other commands work fine I am getting this error when I run

  npx prisma db execute --file ./down.sql --schema prisma/schema.prisma
0 Answers
Related