Browsing index pages (3 articles)
↧
How to securely configure mongodb in production environment
Step1: Install mongodb from here as per your operating system [ linux,window,mac]. Step2: connect or login to mongodb using below command : mongo 127.0.0.1:27001 Step 3: Create an admin user using this...
View ArticleMongodb query to update records uppercase to lowercase in bulk
use DATABASE_NAME; db.CollectionName.find( {}, { 'FieldName': 1 } ).forEach(function(doc) { db.CollectionName.update( { _id: doc._id}, { $set : { 'FieldName' : doc.FieldName.toLowerCase() } }, { multi:...
View ArticleHow to rename collection in mongodb using php ?
Mongodb through error “access denied; use admin db”, “ok” : 0 if you try to rename mongo collection with out admin user. Use below code to rename collection mongodb using php (mongo client)...
View Article
Browsing index pages (3 articles)