Mean Stack Tutorial - 10 - Setting up Mongoose

preview_player
Показать описание

📱 Follow Codevolution

Рекомендации по теме
Комментарии
Автор

i think i will watch all your available videos just for their quality

avimaymon
Автор

I found that it occurs Authentication Error. How can i resolve it?

김대영-zx
Автор

hi gopinath sir please make a cool project based on mern stack

santrawebtech
Автор

is this right place to keep mongodb url along with user name and password, it would be secure, could you please explain

karthikparamesh
Автор

very helpful! Thank you! It works very good!

jiahuachen
Автор

For people getting authentication error:

const db = "<your string>"
mongoose.connect(db, { useNewUrlParser: true }, err => {
if(err) {
console.log('Error: '+err);
}
else {
console.log('Successfully connected to mongodb');
}
})

Tanzeel
Автор

Use this instead:
mongoose.connect(db, {
useMongoClient: true
},
function(err){
if(err){
console.error("Error! "+err);
}
})

murarilalmurari
Автор

IHave found shell Error

Db.prototype.authenticate method will no longer be available in the next major r
elease 3.x as MongoDB 3.6 will only allow auth against users in the admin db and
will no longer allow multiple credentials on a socket. Please authenticate usin
g MongoClient.connect with auth credentials.

maheshit
Автор

when a customer knows the debugging he can see the db credentials details how to save db crdentials safe ??

earthcitizen