I would recommend you to pass the schema file location while invoking npx prisma db push command.
npx prisma db push --schema='/location/to/schema.prisma'
Also, I would recommend you to run the command from root location of your project.
Here's a reference for db push command.
Answer from Nurul Sundarani on Stack OverflowI would recommend you to pass the schema file location while invoking npx prisma db push command.
npx prisma db push --schema='/location/to/schema.prisma'
Also, I would recommend you to run the command from root location of your project.
Here's a reference for db push command.
npx prisma db push not working or not responding with next js
Try shutting down the other server of next js and then again run npx prisma db push. It worked for me
npx prisma db push error after migrating from Planetscale to Neon
`npx prisma db push` and `npx prisma migrate` error when there is a table that starts with `_`
stuck while running prisma db push or pull
db push --force-reset is not creating database if it doesn't exist
mastan@mastan-Lenovo-ideapad-110-15ISK:~/Desktop/tata/sas$ npx prisma db push
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": MySQL database "discord-clone" at "aws.connect.psdb.cloud"
Error: P1001: Can't reach database server at `aws.connect.psdb.cloud`:`3306`
Please make sure your database server is running at `aws.connect.psdb.cloud`:`3306`.
I have a small schema and it simply won't push, the command line freezes exactly there. Is it a problem with bunx, can someone help me understand what's happening?
Hey guys, i am writing this is pain but i am a startup and we had around 500+ data, i was pushing a change in database and got my data erased. I am stupid that i didnt do the migrations and is free version. I have mailed the supabase community but i would like your help too.