Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5962

I got MongoDB error after running : npx prisma db push

$
0
0

The error after typing the command

I've checked my MongoDB url, it's correct.The env files id properly linked.How to resolve this?

This is my schema.prisma:

Prisma Schema

This is how my .env looks like:

.env

I've replaced the original values with dummy variables:

I tried checking the .env variables names, the username ,password, everything is correct.

I also tried npx prisma generate, but it brought new error:

npx prisma generate

When i directly tried to replace the DATABASE_URL in schema with the actual url, this error turned up:

error after replacing Database_url

Edit : Creating a new user resolved it.


Viewing all articles
Browse latest Browse all 5962

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>