Tag Archives: nosql

How to Migrate users from MONGODB-CR to SCRAM-SHA-1?

How to Migrate users from MONGODB-CR to SCRAM-SHA-1? This article about migrating from one to another, here one to another is only directional , not applicable from bi-directional, what does it mean? It means you can migrate from MONGODB-CR to SCRAM-SHA-1 , not vice versa. Be careful once you migrated you can not go back to initial state.

Continue reading How to Migrate users from MONGODB-CR to SCRAM-SHA-1?

How to connect MonogDB in Java?

MongoDB
There are different way to connect the mongoDB in Java , it depends upone many factor, whether it’s stand alone server or installed in localhost or installed and configured in mongoDB replica set or sharding of mongoDB. Secondly, to consider of connecting to mongDB in java, whether by native mongoClient or mongoTemplate in Spring framework or any another approach. I tried to explain few easy step by step process in this article.
Continue reading How to connect MonogDB in Java?

How to export data in .csv file in MongoDB?

MongoDBWell, when you encounter to export your data to a file like .csv. In first time in your life, you might think how to export dta into .csv file in MongoDB? but believe me this is very simple. Exporting of data is one step process in mongoDB. exporting can be with different utility tool but I’m demonstrating here by command line argument.
Continue reading How to export data in .csv file in MongoDB?