Open havietduc91 opened 10 years ago
Fix:
http://stackoverflow.com/questions/13278814/mongodb-cross-database-query
To run a command against another database on the same MongoDB server, in the mongo shell you can use:
db.getSiblingDB('dbname').collection.command() eg:
db.getSiblingDB('test').foo.find()
http://stackoverflow.com/questions/36321899/mongorestore-to-a-different-database
mongorestore -d db2 dumpdir/db1
mongorestore -d edx_backup dump/edx/
Run mongo shell script
mongo script.js
Tổng hợp các kinh nghiệm và các lỗi thường gặp khi sử dụng mongoDB