Skip to content

not able to use local postgres database in prisma 2 #2394

Answered by ryands17
rajneesh3923 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @rajneesh3923 👋
Did you create an .env file or add an environment variable named DATABASE_URL?
If not, then you would have to add the above to make it work.

e.g. An .env file in the prisma folder like this

DATABASE_URL=postgresql://username:password@url:5432/prisma2?schema=public

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rajneesh3923
Comment options

Answer selected by janpio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants