Next.js Discord

Discord Forum

trouble setting up Prisma with my project

Unanswered
Morelet’s Crocodile posted this in #help-forum
Open in Discord
Morelet’s CrocodileOP
was following a tutorial where the person adds neon as a database (?) to their next.js project which needed a prisma setup but for some reason when i follow their tutorial AND the guide to installation on the website i kept having problems.
https://console.neon.tech/app/projects/lingering-haze-80636335/integrations#prisma

i downloaded everything needed for prisma up till npm prisma migrate dev (in my case it's bun instead of npm) and set it up according to the [video (with timestamp)](https://youtu.be/vXMSx7OcZ5M?t=1669) however it says something not working about the localhost? (image 1 and image 2)

i tried to google the issue and saw [this person having the same issue](https://github.com/prisma/prisma/discussions/21666)
(Marked as answer)
If migrate dev does not work locally for you, then db push also does not work. Just run it to confirm.

This means that the problem is with your local database (or the connection string you are trying to use for it). It is not a general Prisma problem when talking to a MySQL database.
is there any hope to fix this cuz they dont really give a solution for the fact that the link is wrong cuz im pretty sure i copied the connection link into the .env file directly so it shouldnt have issues.. (img 3 but im not sure how much to censor if its needed?)

i was kind of stuck and then went to the site to follow their download instructions which made me stuck on another step (img 4 and 5) where the ../generated/prisma is not found on the files... should i just give up on this tutorial and find some other DB to use? or is it possible to fix it?

0 Replies