note sur mongo DB

Installation dans ubuntu :

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

installer studio 3T:

https://studio3t.com/knowledge-base/articles/installation/#install-studio-3t

d’autres outils:

https://www.guru99.com/top-20-mongodb-tools.html

*********************************************************************************

les commands utils

show dbs, show databases

use db-lyu

db : afficher la base actuelle

show collections

mongoose :

connection :fsdfs

mongoose.connect('mongodb://localhost/test', {useNewUrlParser: true});
const db = mongoose.connection;
db.once('open', function() {
  // we're connected!
});

发表评论

电子邮件地址不会被公开。