{"id":7003,"date":"2015-03-16T22:18:11","date_gmt":"2015-03-17T02:18:11","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/?p=7003"},"modified":"2015-03-16T22:19:00","modified_gmt":"2015-03-17T02:19:00","slug":"mongodb-java","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=7003","title":{"rendered":"MongoDB Java"},"content":{"rendered":"<p>Done By Raju(DU)<\/p>\n<p>MongoDB Java<\/p>\n<p>Installation \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf\u0983<\/p>\n<p>Java program \u098f MongoDB \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be\u09b0 \u09aa\u09c2\u09b0\u09cd\u09ac\u09c7 \u0986\u09ae\u09be\u09a6\u09c7\u09b0\u0995\u09c7 \u09a8\u09bf\u09b6\u09cd\u099a\u09bf\u09a4 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7 \u09af\u09c7 MongoDB JDBC<br \/>\nDriver \u098f\u09ac\u0982 Java \u0986\u09ae\u09be\u09a6\u09c7\u09b0 machine \u098f \u09aa\u09c2\u09b0\u09cd\u09ac\u09c7 \u09a5\u09c7\u0995\u09c7\u0987 \u09b0\u09df\u09c7\u099b\u09c7\u0964 \u0986\u09aa\u09a8\u09bf \u0986\u09b0\u0993 Java tutorial \u09a6\u09c7\u0996\u09a4\u09c7 \u09aa\u09be\u09b0\u09c7\u09a8 \u0986\u09aa\u09a8\u09be\u09b0<br \/>\nmachine \u098f Java installation \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af\u0964 \u098f\u0996\u09a8 \u09a6\u09c7\u0996\u09ac\u09c7 \u0995\u09bf\u09ad\u09be\u09ac\u09c7 MongoDB JDBC driver \u099f\u09bf \u0986\u09aa\u09a8\u09be\u09b0 machine<br \/>\n\u098f setup \u0995\u09b0\u09ac\u09c7\u09a8\u0964<br \/>\n\u09e7\u0964 \u09aa\u09cd\u09b0\u09a5\u09ae\u09c7 \u0986\u09aa\u09a8\u09be\u0995\u09c7 \u098f\u0995\u099f\u09bf jar \u09ab\u09be\u0987\u09b2 \u09a6\u09b0\u0995\u09be\u09b0 \u09aa\u09dc\u09ac\u09c7 \u09b8\u09c7\u099f\u09bf mongodb\/mongo-java-driver\/downloads&gt; Download mongo.jar<br \/>\n\u09a5\u09c7\u0995\u09c7 \u09a8\u09be\u09ae\u09bf\u09df\u09c7 \u09a8\u09bf\u09a4\u09c7 \u09b9\u09ac\u09c7 \u098f\u09ac\u0982 \u09a8\u09bf\u09b6\u09cd\u099a\u09bf\u09a4 \u09b9\u09a4\u09c7 \u09b9\u09ac\u09c7 \u09b8\u09c7\u099f\u09bf \u09af\u09c7\u09a8 \u09a8\u09a4\u09c1\u09a8 \u09b8\u0982\u09b8\u09cd\u0995\u09b0\u09a3\u09c7\u09b0 \u09b9\u09df\u0964<br \/>\n\u09e8\u0964 \u0986\u09aa\u09a8\u09be\u0995\u09c7 \u0985\u09ac\u09b6\u09cd\u09af\u0987 mongo.jar \u0995\u09c7 \u0986\u09aa\u09a8\u09be\u09b0 classpath \u098f \u09b8\u0982\u09af\u09c1\u0995\u09cd\u09a4 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7 \u0964<\/p>\n<p>Connect to database( Database \u098f Connect \u0995\u09b0\u09a3)<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nDatabase \u098f connect \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af \u0986\u09aa\u09a8\u09be\u0995\u09c7 database name \u09a8\u09bf\u09b0\u09cd\u09a6\u09bf\u09b7\u09cd\u099f \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7, \u09af\u09a6\u09bf database \u098f\u09b0 \u0995\u09cb\u09a8 \u0985\u09b8\u09cd\u09a4\u09bf\u09a4\u09cd\u09ac \u09a8\u09be<br \/>\n\u09a5\u09be\u0995\u09c7 \u09a4\u09ac\u09c7 mongodb \u09a8\u09bf\u099c\u09c7\u0987 \u09a4\u09be \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09c7 \u09a8\u09bf\u09ac\u09c7\u0964<\/p>\n<p>Database \u098f connect \u0995\u09b0\u09be\u09b0 \u0995\u09bf\u099b\u09c1 Code \u09a8\u09bf\u09ae\u09cd\u09a8\u09b0\u09c1\u09aa\u0983<\/p>\n<p>import com.mongodb.MongoClient;<br \/>\nimport com.mongodb.MongoException;<br \/>\nimport com.mongodb.WriteConcern;<br \/>\nimport com.mongodb.DB;<br \/>\nimport com.mongodb.DBCollection;<br \/>\nimport com.mongodb.BasicDBObject;<br \/>\nimport com.mongodb.DBObject;<br \/>\nimport com.mongodb.DBCursor;<br \/>\nimport com.mongodb.ServerAddress;<br \/>\nimport java.util.Arrays;<\/p>\n<p>public class MongoDBJDBC{<br \/>\npublic static void main( String args[] ){<br \/>\ntry{<br \/>\n\/\/ To connect to mongodb server<br \/>\nMongoClient mongoClient = new MongoClient( &#8220;localhost&#8221; , 27017 );<br \/>\n\/\/ Now connect to your databases<br \/>\nDB db = mongoClient.getDB( &#8220;test&#8221; );<br \/>\nSystem.out.println(&#8220;Connect to database successfully&#8221;);<br \/>\nboolean auth = db.authenticate(myUserName, myPassword);<br \/>\nSystem.out.println(&#8220;Authentication: &#8220;+auth);<br \/>\n}catch(Exception e){<br \/>\nSystem.err.println( e.getClass().getName() + &#8220;: &#8221; + e.getMessage() );<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n<p>\u098f\u0996\u09a8 database \u09aa\u09b0\u09c0\u0995\u09cd\u09b7\u09be \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af \u0989\u09aa\u09b0\u09c7\u09b0 program \u099f\u09bf \u09b8\u0999\u09cd\u0995\u09b2\u09a8 \u098f\u09ac\u0982 \u099a\u09be\u09b2\u09be\u09a8\u09cb \u09af\u09be\u0995\u0964 \u0986\u09aa\u09a8\u09be\u09b0 \u09aa\u09cd\u09b0\u09df\u09cb\u099c\u09a8 \u09ae\u09a4 \u0986\u09aa\u09a8\u09bf<br \/>\npath \u09aa\u09b0\u09bf\u09ac\u09b0\u09cd\u09a4\u09a8 \u0995\u09b0\u09c7 \u09a8\u09bf\u09a4\u09c7 \u09aa\u09be\u09b0\u09c7\u09a8\u0964 \u0986\u09ae\u09b0\u09be JDBC driver mongo-2.10.1.jar \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09c7 \u09ac\u09b0\u09cd\u09a4\u09ae\u09be\u09a8 path \u099f\u09bf \u09aa\u09be\u0993\u09df\u09be \u09af\u09be\u09df\u0964<\/p>\n<p>\u09af\u09c7\u09ae\u09a8\u0983<br \/>\n$javac MongoDBJDBC.java<br \/>\n$java -classpath &#8220;.:mongo-2.10.1.jar&#8221; MongoDBJDBC<br \/>\nConnect to database successfully<br \/>\nAuthentication: true<\/p>\n<p>\u09af\u09a6\u09bf \u0986\u09ae\u09b0\u09be machine \u099f\u09bf\u09a4\u09c7 Windows OS \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09bf \u09a4\u09ac\u09c7 \u0986\u09ae\u09b0\u09be code \u0995\u09c7 \u09a8\u09bf\u09ae\u09cd\u09a8\u09b0\u09c1\u09aa\u09c7 compile and run \u0995\u09b0\u09c7\u09a4\u09c7<br \/>\n\u09aa\u09be\u09b0\u09bf\u0983<\/p>\n<p>$javac MongoDBJDBC.java<br \/>\n$java -classpath &#8220;.;mongo-2.10.1.jar&#8221; MongoDBJDBC<br \/>\nConnect to database successfully<br \/>\nAuthentication: true<\/p>\n<p>\u098f\u0987\u0996\u09be\u09a8\u09c7 auth \u098f\u09b0 Value \u09b9\u09ac\u09c7 true, \u09af\u09a6\u09bf user name \u098f\u09ac\u0982 password \u099f\u09bf \u09a8\u09bf\u09b0\u09cd\u09a6\u09bf\u09b7\u09cd\u099f database \u098f\u09b0 \u099c\u09a8\u09cd\u09af valid \u09b9\u09df\u0964<\/p>\n<p>Create a collection:(collection \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09a8)<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n\u098f\u0995\u099f\u09bf collection \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af com.mongodb.DB class \u098f\u09b0 createCollection( ) \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09a4\u09c7 \u09b9\u09df\u0964<br \/>\nCollection \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af code \u0997\u09c1\u09b2\u09bf \u09a8\u09bf\u09ae\u09cd\u09a8 \u09b0\u09c1\u09aa\u0983<br \/>\nimport com.mongodb.MongoClient;<br \/>\nimport com.mongodb.MongoException;<br \/>\nimport com.mongodb.WriteConcern;<br \/>\nimport com.mongodb.DB;<br \/>\nimport com.mongodb.DBCollection;<br \/>\nimport com.mongodb.BasicDBObject;<br \/>\nimport com.mongodb.DBObject;<br \/>\nimport com.mongodb.DBCursor;<br \/>\nimport com.mongodb.ServerAddress;<br \/>\nimport java.util.Arrays;<\/p>\n<p>public class MongoDBJDBC{<br \/>\npublic static void main( String args[] ){<br \/>\ntry{<br \/>\n\/\/ To connect to mongodb server<br \/>\nMongoClient mongoClient = new MongoClient( &#8220;localhost&#8221; , 27017 );<br \/>\n\/\/ Now connect to your databases<br \/>\nDB db = mongoClient.getDB( &#8220;test&#8221; );<br \/>\nSystem.out.println(&#8220;Connect to database successfully&#8221;);<br \/>\nboolean auth = db.authenticate(myUserName, myPassword);<br \/>\nSystem.out.println(&#8220;Authentication: &#8220;+auth);<br \/>\nDBCollection coll = db.createCollection(&#8220;mycol&#8221;);<br \/>\nSystem.out.println(&#8220;Collection created successfully&#8221;);<br \/>\n}catch(Exception e){<br \/>\nSystem.err.println( e.getClass().getName() + &#8220;: &#8221; + e.getMessage() );<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n<p>\u09af\u0996\u09a8 program \u099f\u09bf compiled and executed \u09b9\u09ac\u09c7 \u09a4\u0996\u09a8 \u098f\u099f\u09bf \u09a8\u09bf\u09ae\u09cd\u09a8\u09b0\u09c2\u09aa \u09ab\u09b2\u09be\u09ab\u09b2 \u09a6\u09bf\u09ac\u09c7-<br \/>\nConnect to database successfully<br \/>\nAuthentication: true<br \/>\nCollection created successfully<\/p>\n<p>Getting\/ selecting a collection(collection \u09a8\u09bf\u09b0\u09cd\u09a6\u09bf\u09b7\u09cd\u099f \u0995\u09b0\u09a8):<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n\u098f\u0995\u099f\u09bf collection \u0995\u09c7 database \u098f \u09a8\u09bf\u09b0\u09cd\u09a6\u09bf\u09b7\u09cd\u099f \u0995\u09b0\u09a4\u09c7 com.mongodb.DBCollection class \u099f\u09bf\u09b0<br \/>\ngetCollection() \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be \u09b9\u09df\u0964<\/p>\n<p>Code \u0997\u09c1\u09b2\u09bf \u09a8\u09bf\u09ae\u09cd\u09a8\u09b0\u09c2\u09aa\u0983<br \/>\nimport com.mongodb.MongoClient;<br \/>\nimport com.mongodb.MongoException;<br \/>\nimport com.mongodb.WriteConcern;<br \/>\nimport com.mongodb.DB;<br \/>\nimport com.mongodb.DBCollection;<br \/>\nimport com.mongodb.BasicDBObject;<br \/>\nimport com.mongodb.DBObject;<br \/>\nimport com.mongodb.DBCursor;<br \/>\nimport com.mongodb.ServerAddress;<br \/>\nimport java.util.Arrays;<\/p>\n<p>public class MongoDBJDBC{<br \/>\npublic static void main( String args[] ){<br \/>\ntry{<br \/>\n\/\/ To connect to mongodb server<br \/>\nMongoClient mongoClient = new MongoClient( &#8220;localhost&#8221; , 27017 );<br \/>\n\/\/ Now connect to your databases<br \/>\nDB db = mongoClient.getDB( &#8220;test&#8221; );<br \/>\nSystem.out.println(&#8220;Connect to database successfully&#8221;);<br \/>\nboolean auth = db.authenticate(myUserName, myPassword);<br \/>\nSystem.out.println(&#8220;Authentication: &#8220;+auth);<br \/>\nDBCollection coll = db.createCollection(&#8220;mycol&#8221;);<br \/>\nSystem.out.println(&#8220;Collection created successfully&#8221;);<br \/>\nDBCollection coll = db.getCollection(&#8220;mycol&#8221;);<br \/>\nSystem.out.println(&#8220;Collection mycol selected successfully&#8221;);<br \/>\n}catch(Exception e){<br \/>\nSystem.err.println( e.getClass().getName() + &#8220;: &#8221; + e.getMessage() );<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n<p>\u09af\u0996\u09a8 program \u099f\u09bf compiled and executed \u09b9\u09ac\u09c7 \u09a4\u0996\u09a8 \u098f\u099f\u09bf \u09a8\u09bf\u09ae\u09cd\u09a8\u09b0\u09c2\u09aa \u09ab\u09b2\u09be\u09ab\u09b2 \u09a6\u09bf\u09ac\u09c7-<br \/>\nConnect to database successfully<br \/>\nAuthentication: true<br \/>\nCollection created successfully<br \/>\nCollection mycol selected successfully<\/p>\n<p>Insert a document (\u098f\u0995\u099f\u09bf document \u09aa\u09cd\u09b0\u09ac\u09c7\u09b6 \u0995\u09b0\u09a3):<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nmongodb \u09a4\u09c7 \u098f\u0995\u099f\u09bf document \u0995\u09c7 \u09aa\u09cd\u09b0\u09ac\u09c7\u09b6 \u0995\u09b0\u09be\u09a4\u09c7 com.mongodb.DBCollection class \u098f\u09b0<br \/>\ninsert() \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be \u09b9\u09df\u0964<\/p>\n<p>Code \u0997\u09c1\u09b2\u09bf \u09a8\u09bf\u09ae\u09cd\u09a8\u09b0\u09c2\u09aa\u0983<br \/>\nimport com.mongodb.MongoClient;<br \/>\nimport com.mongodb.MongoException;<br \/>\nimport com.mongodb.WriteConcern;<br \/>\nimport com.mongodb.DB;<br \/>\nimport com.mongodb.DBCollection;<br \/>\nimport com.mongodb.BasicDBObject;<br \/>\nimport com.mongodb.DBObject;<br \/>\nimport com.mongodb.DBCursor;<br \/>\nimport com.mongodb.ServerAddress;<br \/>\nimport java.util.Arrays;<\/p>\n<p>public class MongoDBJDBC{<br \/>\npublic static void main( String args[] ){<br \/>\ntry{<br \/>\n\/\/ To connect to mongodb server<br \/>\nMongoClient mongoClient = new MongoClient( &#8220;localhost&#8221; , 27017 );<br \/>\n\/\/ Now connect to your databases<br \/>\nDB db = mongoClient.getDB( &#8220;test&#8221; );<br \/>\nSystem.out.println(&#8220;Connect to database successfully&#8221;);<br \/>\nboolean auth = db.authenticate(myUserName, myPassword);<br \/>\nSystem.out.println(&#8220;Authentication: &#8220;+auth);<br \/>\nDBCollection coll = db.getCollection(&#8220;mycol&#8221;);<br \/>\nSystem.out.println(&#8220;Collection mycol selected successfully&#8221;);<br \/>\nBasicDBObject doc = new BasicDBObject(&#8220;title&#8221;, &#8220;MongoDB&#8221;).<br \/>\nappend(&#8220;description&#8221;, &#8220;database&#8221;).<br \/>\nappend(&#8220;likes&#8221;, 100).<br \/>\nappend(&#8220;url&#8221;, &#8220;http:\/\/www.tutorialspoint.com\/mongodb\/&#8221;).<br \/>\nappend(&#8220;by&#8221;, &#8220;tutorials point&#8221;);<br \/>\ncoll.insert(doc);<br \/>\nSystem.out.println(&#8220;Document inserted successfully&#8221;);<br \/>\n}catch(Exception e){<br \/>\nSystem.err.println( e.getClass().getName() + &#8220;: &#8221; + e.getMessage() );<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n<p>\u09af\u0996\u09a8 program \u099f\u09bf compiled and executed \u09b9\u09ac\u09c7 \u09a4\u0996\u09a8 \u098f\u099f\u09bf \u09a8\u09bf\u09ae\u09cd\u09a8\u09b0\u09c2\u09aa \u09ab\u09b2\u09be\u09ab\u09b2 \u09a6\u09bf\u09ac\u09c7-<\/p>\n<p>Connect to database successfully<br \/>\nAuthentication: true<br \/>\nCollection mycol selected successfully<br \/>\nDocument inserted successfully<\/p>\n<p>Retrieve all documents(document \u098f\u09b0 \u09aa\u09c1\u09a8\u09b0\u09c1\u09a6\u09cd\u09a7\u09be\u09b0 \u0995\u09b0\u09a8):<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\ncollection \u098f\u09b0 \u09b8\u0995\u09b2 document \u0995\u09c7 \u09a8\u09bf\u09b0\u09cd\u09ac\u09be\u099a\u09a8 \u0995\u09b0\u09a4\u09c7 com.mongodb.DBCollection class \u098f\u09b0<br \/>\nfind() \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf \u099f\u09bf \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be \u09b9\u09df\u0964 \u098f\u0987 \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf \u099f\u09bf cursor \u0995\u09c7 \u09ac\u09a6\u09b2\u09c7 \u09a6\u09c7\u09df, \u09a4\u09be\u0987 \u0986\u09aa\u09a8\u09be\u0995\u09c7 \u09a4\u09be \u09aa\u09c1\u09a8\u09b0\u09c1\u09a6\u09cd\u09a7\u09be\u09b0<br \/>\n\u0995\u09b0\u09be\u09b0 \u09aa\u09cd\u09b0\u09df\u09cb\u099c\u09a8 \u09aa\u09b0\u09ac\u09c7\u0964<\/p>\n<p>Code \u0997\u09c1\u09b2\u09bf \u09a8\u09bf\u09ae\u09cd\u09a8\u09b0\u09c2\u09aa\u0983<br \/>\nimport com.mongodb.MongoClient;<br \/>\nimport com.mongodb.MongoException;<br \/>\nimport com.mongodb.WriteConcern;<br \/>\nimport com.mongodb.DB;<br \/>\nimport com.mongodb.DBCollection;<br \/>\nimport com.mongodb.BasicDBObject;<br \/>\nimport com.mongodb.DBObject;<br \/>\nimport com.mongodb.DBCursor;<br \/>\nimport com.mongodb.ServerAddress;<br \/>\nimport java.util.Arrays;<\/p>\n<p>public class MongoDBJDBC{<br \/>\npublic static void main( String args[] ){<br \/>\ntry{<br \/>\n\/\/ To connect to mongodb server<br \/>\nMongoClient mongoClient = new MongoClient( &#8220;localhost&#8221; , 27017 );<br \/>\n\/\/ Now connect to your databases<br \/>\nDB db = mongoClient.getDB( &#8220;test&#8221; );<br \/>\nSystem.out.println(&#8220;Connect to database successfully&#8221;);<br \/>\nboolean auth = db.authenticate(myUserName, myPassword);<br \/>\nSystem.out.println(&#8220;Authentication: &#8220;+auth);<br \/>\nDBCollection coll = db.getCollection(&#8220;mycol&#8221;);<br \/>\nSystem.out.println(&#8220;Collection mycol selected successfully&#8221;);<br \/>\nDBCursor cursor = coll.find();<br \/>\nint i=1;<br \/>\nwhile (cursor.hasNext()) {<br \/>\nSystem.out.println(&#8220;Inserted Document: &#8220;+i);<br \/>\nSystem.out.println(cursor.next());<br \/>\ni++;<br \/>\n}<br \/>\n}catch(Exception e){<br \/>\nSystem.err.println( e.getClass().getName() + &#8220;: &#8221; + e.getMessage() );<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n<p>\u09af\u0996\u09a8 program \u099f\u09bf compiled and executed \u09b9\u09ac\u09c7 \u09a4\u0996\u09a8 \u098f\u099f\u09bf \u09a8\u09bf\u09ae\u09cd\u09a8\u09b0\u09c2\u09aa \u09ab\u09b2\u09be\u09ab\u09b2 \u09a6\u09bf\u09ac\u09c7-<\/p>\n<p>Connect to database successfully<br \/>\nAuthentication: true<br \/>\nCollection mycol selected successfully<br \/>\nInserted Document: 1<br \/>\n{<br \/>\n&#8220;_id&#8221; : ObjectId(7df78ad8902c),<br \/>\n&#8220;title&#8221;: &#8220;MongoDB&#8221;,<br \/>\n&#8220;description&#8221;: &#8220;database&#8221;,<br \/>\n&#8220;likes&#8221;: 100,<br \/>\n&#8220;url&#8221;: &#8220;http:\/\/www.tutorialspoint.com\/mongodb\/&#8221;,<br \/>\n&#8220;by&#8221;: &#8220;tutorials point&#8221;<br \/>\n}<\/p>\n<p>Update document( document \u098f\u09b0 \u09b9\u09be\u09b2\u09a8\u09be\u0997\u09be\u09a6):<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\ncollection \u09a5\u09c7\u0995\u09c7 document \u0995\u09c7 \u09b9\u09be\u09b2\u09a8\u09be\u0997\u09be\u09a6 \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af com.mongodb.DBCollection class<br \/>\n\u098f\u09b0 update() \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be \u09b9\u09df\u0964<\/p>\n<p>Code \u0997\u09c1\u09b2\u09bf \u09a8\u09bf\u09ae\u09cd\u09a8\u09b0\u09c2\u09aa\u0983<\/p>\n<p>import com.mongodb.MongoClient;<br \/>\nimport com.mongodb.MongoException;<br \/>\nimport com.mongodb.WriteConcern;<br \/>\nimport com.mongodb.DB;<br \/>\nimport com.mongodb.DBCollection;<br \/>\nimport com.mongodb.BasicDBObject;<br \/>\nimport com.mongodb.DBObject;<br \/>\nimport com.mongodb.DBCursor;<br \/>\nimport com.mongodb.ServerAddress;<br \/>\nimport java.util.Arrays;<\/p>\n<p>public class MongoDBJDBC{<br \/>\npublic static void main( String args[] ){<br \/>\ntry{<br \/>\n\/\/ To connect to mongodb server<br \/>\nMongoClient mongoClient = new MongoClient( &#8220;localhost&#8221; , 27017 );<br \/>\n\/\/ Now connect to your databases<br \/>\nDB db = mongoClient.getDB( &#8220;test&#8221; );<br \/>\nSystem.out.println(&#8220;Connect to database successfully&#8221;);<br \/>\nboolean auth = db.authenticate(myUserName, myPassword);<br \/>\nSystem.out.println(&#8220;Authentication: &#8220;+auth);<br \/>\nDBCollection coll = db.getCollection(&#8220;mycol&#8221;);<br \/>\nSystem.out.println(&#8220;Collection mycol selected successfully&#8221;);<br \/>\nDBCursor cursor = coll.find();<br \/>\nwhile (cursor.hasNext()) {<br \/>\nDBObject updateDocument = cursor.next();<br \/>\nupdateDocument.put(&#8220;likes&#8221;,&#8221;200&#8243;)<br \/>\ncol1.update(updateDocument);<br \/>\n}<br \/>\nSystem.out.println(&#8220;Document updated successfully&#8221;);<br \/>\ncursor = coll.find();<br \/>\nint i=1;<br \/>\nwhile (cursor.hasNext()) {<br \/>\nSystem.out.println(&#8220;Updated Document: &#8220;+i);<br \/>\nSystem.out.println(cursor.next());<br \/>\ni++;<br \/>\n}<br \/>\n}catch(Exception e){<br \/>\nSystem.err.println( e.getClass().getName() + &#8220;: &#8221; + e.getMessage() );<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n<p>\u09af\u0996\u09a8 program \u099f\u09bf compiled and executed \u09b9\u09ac\u09c7 \u09a4\u0996\u09a8 \u098f\u099f\u09bf \u09a8\u09bf\u09ae\u09cd\u09a8\u09b0\u09c2\u09aa \u09ab\u09b2\u09be\u09ab\u09b2 \u09a6\u09bf\u09ac\u09c7-<\/p>\n<p>Connect to database successfully<br \/>\nAuthentication: true<br \/>\nCollection mycol selected successfully<br \/>\nDocument updated successfully<br \/>\nUpdated Document: 1<br \/>\n{<br \/>\n&#8220;_id&#8221; : ObjectId(7df78ad8902c),<br \/>\n&#8220;title&#8221;: &#8220;MongoDB&#8221;,<br \/>\n&#8220;description&#8221;: &#8220;database&#8221;,<br \/>\n&#8220;likes&#8221;: 100,<br \/>\n&#8220;url&#8221;: &#8220;http:\/\/www.tutorialspoint.com\/mongodb\/&#8221;,<br \/>\n&#8220;by&#8221;: &#8220;tutorials point&#8221;<br \/>\n}<\/p>\n<p>Delete first document( \u09aa\u09cd\u09b0\u09a5\u09ae document \u09ae\u09c1\u099b\u09c7 \u09ab\u09c7\u09b2\u09be):<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\ncollection \u09a5\u09c7\u0995\u09c7 \u09aa\u09cd\u09b0\u09a5\u09ae document \u09ae\u09c1\u099b\u09c7 \u09ab\u09c7\u09b2\u09be\u09b0 \u099c\u09a8\u09cd\u09af \u09aa\u09cd\u09b0\u09a5\u09ae\u09c7 com.mongodb.DBCollection class<br \/>\n\u098f\u09b0 findOne() \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf \u098f\u09ac\u0982 \u09aa\u09b0\u09c7 remove \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be \u09b9\u09df\u0964<\/p>\n<p>Code \u0997\u09c1\u09b2\u09bf \u09a8\u09bf\u09ae\u09cd\u09a8\u09b0\u09c2\u09aa\u0983<br \/>\nimport com.mongodb.MongoClient;<br \/>\nimport com.mongodb.MongoException;<br \/>\nimport com.mongodb.WriteConcern;<br \/>\nimport com.mongodb.DB;<br \/>\nimport com.mongodb.DBCollection;<br \/>\nimport com.mongodb.BasicDBObject;<br \/>\nimport com.mongodb.DBObject;<br \/>\nimport com.mongodb.DBCursor;<br \/>\nimport com.mongodb.ServerAddress;<br \/>\nimport java.util.Arrays;<\/p>\n<p>public class MongoDBJDBC{<br \/>\npublic static void main( String args[] ){<br \/>\ntry{<br \/>\n\/\/ To connect to mongodb server<br \/>\nMongoClient mongoClient = new MongoClient( &#8220;localhost&#8221; , 27017 );<br \/>\n\/\/ Now connect to your databases<br \/>\nDB db = mongoClient.getDB( &#8220;test&#8221; );<br \/>\nSystem.out.println(&#8220;Connect to database successfully&#8221;);<br \/>\nboolean auth = db.authenticate(myUserName, myPassword);<br \/>\nSystem.out.println(&#8220;Authentication: &#8220;+auth);<br \/>\nDBCollection coll = db.getCollection(&#8220;mycol&#8221;);<br \/>\nSystem.out.println(&#8220;Collection mycol selected successfully&#8221;);<br \/>\nDBObject myDoc = coll.findOne();<br \/>\ncol1.remove(myDoc);<br \/>\nDBCursor cursor = coll.find();<br \/>\nint i=1;<br \/>\nwhile (cursor.hasNext()) {<br \/>\nSystem.out.println(&#8220;Inserted Document: &#8220;+i);<br \/>\nSystem.out.println(cursor.next());<br \/>\ni++;<br \/>\n}<br \/>\nSystem.out.println(&#8220;Document deleted successfully&#8221;);<br \/>\n}catch(Exception e){<br \/>\nSystem.err.println( e.getClass().getName() + &#8220;: &#8221; + e.getMessage() );<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n<p>\u09af\u0996\u09a8 program \u099f\u09bf compiled and executed \u09b9\u09ac\u09c7 \u09a4\u0996\u09a8 \u098f\u099f\u09bf \u09a8\u09bf\u09ae\u09cd\u09a8\u09b0\u09c2\u09aa \u09ab\u09b2\u09be\u09ab\u09b2 \u09a6\u09bf\u09ac\u09c7-<br \/>\nConnect to database successfully<br \/>\nAuthentication: true<br \/>\nCollection mycol selected successfully<br \/>\nDocument deleted successfully<\/p>\n<p>mongodb \u098f\u09b0 \u09ac\u09be\u0995\u09bf \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf \u09af\u09c7\u09ae\u09a8 save(), limit(), skip(), sort() \u098f\u0995\u0987 \u09ad\u09be\u09ac\u09c7 \u0995\u09be\u099c \u0995\u09b0\u09c7 \u0964<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Done By Raju(DU) MongoDB Java Installation \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf\u0983 Java program \u098f MongoDB \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be\u09b0 \u09aa\u09c2\u09b0\u09cd\u09ac\u09c7 \u0986\u09ae\u09be\u09a6\u09c7\u09b0\u0995\u09c7 \u09a8\u09bf\u09b6\u09cd\u099a\u09bf\u09a4 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7 \u09af\u09c7 MongoDB JDBC Driver \u098f\u09ac\u0982 Java \u0986\u09ae\u09be\u09a6\u09c7\u09b0 machine \u098f \u09aa\u09c2\u09b0\u09cd\u09ac\u09c7 \u09a5\u09c7\u0995\u09c7\u0987 \u09b0\u09df\u09c7\u099b\u09c7\u0964 \u0986\u09aa\u09a8\u09bf \u0986\u09b0\u0993 Java tutorial \u09a6\u09c7\u0996\u09a4\u09c7 \u09aa\u09be\u09b0\u09c7\u09a8 \u0986\u09aa\u09a8\u09be\u09b0 machine \u098f Java installation \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af\u0964 \u098f\u0996\u09a8 \u09a6\u09c7\u0996\u09ac\u09c7 \u0995\u09bf\u09ad\u09be\u09ac\u09c7 MongoDB JDBC driver \u099f\u09bf \u0986\u09aa\u09a8\u09be\u09b0 machine \u098f setup \u0995\u09b0\u09ac\u09c7\u09a8\u0964 &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=7003\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[222],"tags":[],"class_list":["post-7003","post","type-post","status-publish","format-standard","hentry","category-----mongodb-001","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":7005,"url":"http:\/\/bangla.sitestree.com\/?p=7005","url_meta":{"origin":7003,"position":0},"title":"MongoDB PHP. MongoDB \u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf","author":"Author-Check- Article-or-Video","date":"April 24, 2015","format":false,"excerpt":"MongoDB \u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf \u09a8\u09df\u09a8 \u099a\u09a8\u09cd\u09a6\u09cd\u09b0 \u09a6\u09a4\u09cd\u09a4 \u00a0 \u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf \u098f\u09b0 \u09b8\u0999\u09cd\u0997\u09c7 MongoDB \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af \u0986\u09aa\u09a8\u09be\u0995\u09c7 MongoDB \u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf \u09a1\u09cd\u09b0\u09be\u0987\u09ad\u09be\u09b0 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7\u0964 \u09a8\u09bf\u099a\u09c7\u09b0 \u09b2\u09bf\u0999\u09cd\u0995 \u09a5\u09c7\u0995\u09c7 \u09a1\u09cd\u09b0\u09be\u0987\u09ad\u09be\u09b0\u099f\u09bf \u09a1\u09be\u0989\u09a8\u09b2\u09cb\u09a1 \u0995\u09b0\u09c7 \u09a8\u09bf\u09a8\u0983 https:\/\/s3.amazonaws.com\/drivers.mongodb.org\/php\/index.html \u09b8\u09b0\u09cd\u09ac\u09b6\u09c7\u09b7 \u09b0\u09bf\u09b2\u09bf\u099c \u09a1\u09be\u0989\u09a8\u09b2\u09cb\u09a1 \u0995\u09b0\u09a4\u09c7 \u09ad\u09c1\u09b2\u09ac\u09c7\u09a8 \u09a8\u09be\u0964 \u098f\u0996\u09a8 \u0986\u09b0\u09cd\u0995\u09be\u0987\u09ad\u099f\u09bf \u0986\u09a8\u099c\u09bf\u09aa \u0995\u09b0\u09c1\u09a8 \u098f\u09ac\u0982 \u0986\u09aa\u09a8\u09be\u09b0 \u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf \u098f\u0995\u09cd\u09b8\u099f\u09c7\u09a8\u09b6\u09a8 \u09a1\u09bf\u09b0\u09c7\u0995\u09cd\u099f\u09b0\u09bf\u09b0 (\"ext\" \u09a1\u09bf\u09ab\u09b2\u09cd\u099f\u09ad\u09be\u09ac\u09c7) \u09ae\u09a7\u09cd\u09af\u09c7 php_mongo.dll \u098f \u098f\u09ac\u0982 \u09a8\u09bf\u099a\u09c7\u09b0\u2026","rel":"","context":"In &quot;\u09ae\u0999\u09cd\u0997 \u09a1\u09bf \u09ac\u09bf \u0964 MongoDB&quot;","block_context":{"text":"\u09ae\u0999\u09cd\u0997 \u09a1\u09bf \u09ac\u09bf \u0964 MongoDB","link":"http:\/\/bangla.sitestree.com\/?cat=222"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6569,"url":"http:\/\/bangla.sitestree.com\/?p=6569","url_meta":{"origin":7003,"position":1},"title":"(In Bengali) MongoDB Environment. Install MongoDB on Windows and Linux","author":"Author-Check- Article-or-Video","date":"March 26, 2015","format":false,"excerpt":"\u09b8\u09cd\u09ac\u09be\u0997\u09a4\u09ae \u0986\u09aa\u09a8\u09be\u0995\u09c7 \u0986\u09ae\u09be\u09a6\u09c7\u09b0 \u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2 \u09b8\u09be\u0987\u099f\u09c7\u0964 \u098f\u0996\u09be\u09a8\u09c7 \u0986\u099c\u0995\u09c7 \u0986\u09ae\u09b0\u09be \u0986\u09b2\u09cb\u099a\u09cb\u09a8\u09be \u0995\u09b0\u09ac\u09cb \u0995\u09bf\u09ad\u09be\u09ac\u09c7 \u0986\u09aa\u09a8\u09bf \u0986\u09aa\u09a8\u09be\u09b0 \u0989\u0987\u09a8\u09cd\u09a1\u09cb\u099c \u098f \u098f\u09ac\u0982 \u0989\u09ac\u09a8\u099f\u09c1 \u09a4\u09c7 MongoDB \u0987\u09a8\u09cd\u09b8\u099f\u09b2 \u09a6\u09bf\u09ac\u09c7\u09a8\u0964 Install MongoDB On Windows \u00a0 MongoDB \u0987\u09a8\u09cd\u09b8\u099f\u09b2 \u0995\u09b0\u09a4\u09c7 \u0986\u09aa\u09a8\u09be\u0995\u09c7 \u0986\u0997\u09c7 \u09b8\u09b0\u09cd\u09ac\u09b6\u09c7\u09b7 \u09ad\u09be\u09b0\u09cd\u09b8\u09a8 \u09a1\u09be\u0989\u09a8\u09b2\u09cb\u09a1 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7, \u09af\u09be \u0986\u09aa\u09a8\u09be\u09b0 \u0989\u0987\u09a8\u09cd\u09a1\u09cb\u099c \u098f\u09b0 \u09ad\u09be\u09b0\u09cd\u09b8\u09a8 \u098f\u09b0 \u09b8\u09be\u09a5\u09c7 \u09ae\u09bf\u09b2 \u09a5\u09be\u0995\u09ac\u09c7\u0964 \u098f\u0996\u09be\u09a8\u09c7 \u09b8\u09b0\u09be\u09b8\u09b0\u09bf \u09a1\u09be\u0989\u09a8\u09b2\u09cb\u09a1 \u098f\u09b0 \u09b2\u09bf\u0982\u0995\u2026","rel":"","context":"In &quot;\u09ae\u0999\u09cd\u0997 \u09a1\u09bf \u09ac\u09bf \u0964 MongoDB&quot;","block_context":{"text":"\u09ae\u0999\u09cd\u0997 \u09a1\u09bf \u09ac\u09bf \u0964 MongoDB","link":"http:\/\/bangla.sitestree.com\/?cat=222"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6571,"url":"http:\/\/bangla.sitestree.com\/?p=6571","url_meta":{"origin":7003,"position":2},"title":"MongoDB Data Modelling . MongoDB \u09a1\u09c7\u099f\u09be \u09ae\u09a1\u09c7\u09b2\u09bf\u0982","author":"Author-Check- Article-or-Video","date":"March 26, 2015","format":false,"excerpt":"MongoDB Data Modelling : MongoDB \u09a1\u09c7\u099f\u09be \u09ae\u09a1\u09c7\u09b2\u09bf\u0982 \u0986\u09a6\u09a8\u09be\u09a8 \u09a8\u09be\u09b9\u09bf\u09a6 \u09b8\u09b0\u0995\u09be\u09b0\u09bf \u09a4\u09bf\u09a4\u09c1\u09ae\u09c0\u09b0 \u0995\u09b2\u09c7\u099c \u0964 MongoDB \u09a1\u09c7\u099f\u09be\u09df \u098f\u0995\u099f\u09bf \u09a8\u09ae\u09a8\u09c0\u09af\u09bc \u09b8\u09cd\u0995\u09bf\u09ae\u09be \u0986\u099b\u09c7, \u09af\u09be\u09b0 \u09ab\u09b2\u09c7 \u098f\u0995\u0987 \u09a7\u09b0\u09a8\u09c7\u09b0 \u09a1\u0995\u09c1\u09ae\u09c7\u09a8\u09cd\u099f\u09c7 \u098f\u0995\u0987 \u09a7\u09b0\u09a8\u09c7\u09b0 \u0997\u09a0\u09a8\u09c7\u09b0 \u09aa\u09cd\u09b0\u09df\u09cb\u099c\u09a8 \u09b9\u09df \u09a8\u09be \u098f\u09ac\u0982 \u09b8\u0982\u0997\u09b9\u09c7 \u09a5\u09be\u0995\u09be \u0995\u09ae\u09a8 \u09a1\u0995\u09c1\u09ae\u09c7\u09a8\u09cd\u099f\u0997\u09c1\u09b2\u09cb \u09ac\u09bf\u09ad\u09bf\u09a8\u09cd\u09a8\u09ad\u09be\u09ac\u09c7 \u09b0\u09be\u0996\u09be \u09af\u09be\u09df \u0964 MongoDB \u09a4\u09c7 \u09b8\u09cd\u0995\u09bf\u09ae\u09be \u09a1\u09bf\u099c\u09be\u0987\u09a8 \u0995\u09b0\u09be\u09b0 \u09b8\u09ae\u09df \u0995\u09bf\u099b\u09c1 \u09ac\u09bf\u09ac\u09c7\u099a\u09cd\u09af \u09ac\u09bf\u09b7\u09df : \uf0d8\u2026","rel":"","context":"In &quot;\u09ae\u0999\u09cd\u0997 \u09a1\u09bf \u09ac\u09bf \u0964 MongoDB&quot;","block_context":{"text":"\u09ae\u0999\u09cd\u0997 \u09a1\u09bf \u09ac\u09bf \u0964 MongoDB","link":"http:\/\/bangla.sitestree.com\/?cat=222"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6999,"url":"http:\/\/bangla.sitestree.com\/?p=6999","url_meta":{"origin":7003,"position":3},"title":"MongoDB Create Backup. MongoDB \u09ac\u09cd\u09af\u09be\u0995\u0986\u09aa \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be","author":"Author-Check- Article-or-Video","date":"April 24, 2015","format":false,"excerpt":"MongoDB \u09ac\u09cd\u09af\u09be\u0995\u0986\u09aa \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be \u09a8\u09df\u09a8 \u099a\u09a8\u09cd\u09a6\u09cd\u09b0 \u09a6\u09a4\u09cd\u09a4 \u00a0 \u0995\u09bf \u0996\u09ac\u09b0 \u09b8\u09ac\u09be\u09b0? \u0986\u09b6\u09be \u0995\u09b0\u099b\u09bf \u09b8\u09ac\u09be\u0987 \u09ad\u09be\u09b2 \u0986\u099b\u09c7\u09a8\u0964 \u0986\u099c \u0986\u09ae\u09bf \u09b9\u09be\u099c\u09bf\u09b0 \u09b9\u09df\u09c7\u099b\u09bf \u098f\u0995\u099f\u09bf \u09a8\u09a4\u09c1\u09a8 \u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2 \u09a8\u09bf\u09df\u09c7\u0964 \u0986\u099c \u0986\u09ae\u09b0\u09be \u09a6\u09c7\u0996\u09ac \u0995\u09c0\u09ad\u09be\u09ac\u09c7 MongoDB \u09ac\u09cd\u09af\u09be\u0995\u0986\u09aa \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be \u09af\u09be\u09df\u0964 \u09a4\u09be\u09b9\u09b2\u09c7 \u0986\u09b0 \u0995\u09a5\u09be \u09a8\u09be \u09ac\u09be\u09dc\u09bf\u09df\u09c7 \u0986\u099c\u0995\u09c7\u09b0 \u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2 \u09b6\u09c1\u09b0\u09c1 \u0995\u09b0\u09bf\u0964 MongoDB \u09a4\u09a5\u09cd\u09af \u09a1\u09be\u09ae\u09cd\u09aa MongoDB \u09a4\u09c7 \u09a1\u09c7\u099f\u09be\u09ac\u09c7\u09b8\u09c7\u09b0 \u09ac\u09cd\u09af\u09be\u0995\u0986\u09aa \u09a4\u09c8\u09b0\u09bf\u2026","rel":"","context":"In &quot;\u09ae\u0999\u09cd\u0997 \u09a1\u09bf \u09ac\u09bf \u0964 MongoDB&quot;","block_context":{"text":"\u09ae\u0999\u09cd\u0997 \u09a1\u09bf \u09ac\u09bf \u0964 MongoDB","link":"http:\/\/bangla.sitestree.com\/?cat=222"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6573,"url":"http:\/\/bangla.sitestree.com\/?p=6573","url_meta":{"origin":7003,"position":4},"title":"MongoDB Create Database","author":"Author-Check- Article-or-Video","date":"March 6, 2015","format":false,"excerpt":"MongoDB \u09a1\u09c7\u099f\u09be\u09ac\u09c7\u09b8 \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be \u09b2\u09c7\u0996\u0995\u0983 \u09a8\u09df\u09a8 \u099a\u09a8\u09cd\u09a6\u09cd\u09b0 \u09a6\u09a4\u09cd\u09a4 \u0995\u09bf \u0996\u09ac\u09b0 \u09b8\u09ac\u09be\u09b0? \u0986\u09b6\u09be \u0995\u09b0\u099b\u09bf \u09b8\u09ac\u09be\u0987 \u09ad\u09be\u09b2 \u0986\u099b\u09c7\u09a8\u0964 \u0986\u099c \u0986\u09ae\u09bf \u09b9\u09be\u099c\u09bf\u09b0 \u09b9\u09df\u09c7\u099b\u09bf \u098f\u0995\u099f\u09bf \u09a8\u09a4\u09c1\u09a8 \u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2 \u09a8\u09bf\u09df\u09c7\u0964 \u0986\u099c \u0986\u09ae\u09b0\u09be \u09a6\u09c7\u0996\u09ac \u0995\u09c0\u09ad\u09be\u09ac\u09c7 MongoDB \u09a1\u09c7\u099f\u09be\u09ac\u09c7\u09b8 \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be \u09af\u09be\u09df\u0964 \u09a4\u09be\u09b9\u09b2\u09c7 \u0986\u09b0 \u0995\u09a5\u09be \u09a8\u09be \u09ac\u09be\u09dc\u09bf\u09df\u09c7 \u0986\u099c\u0995\u09c7\u09b0 \u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2 \u09b6\u09c1\u09b0\u09c1 \u0995\u09b0\u09bf\u0964 use \u0995\u09ae\u09be\u09a8\u09cd\u09a1 MongoDB use DATABASE_NAME \u09a1\u09c7\u099f\u09be\u09ac\u09c7\u09b8 \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09a4\u09c7\u2026","rel":"","context":"In &quot;\u09ae\u0999\u09cd\u0997 \u09a1\u09bf \u09ac\u09bf \u0964 MongoDB&quot;","block_context":{"text":"\u09ae\u0999\u09cd\u0997 \u09a1\u09bf \u09ac\u09bf \u0964 MongoDB","link":"http:\/\/bangla.sitestree.com\/?cat=222"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6989,"url":"http:\/\/bangla.sitestree.com\/?p=6989","url_meta":{"origin":7003,"position":5},"title":"MongoDB Sort Documents . MongoDB \u09a1\u0995\u09c1\u09ae\u09c7\u09a8\u09cd\u099f \u09ac\u09be\u099b\u09be\u0987","author":"Author-Check- Article-or-Video","date":"March 25, 2015","format":false,"excerpt":"MongoDB \u09a1\u0995\u09c1\u09ae\u09c7\u09a8\u09cd\u099f \u09ac\u09be\u099b\u09be\u0987 \u09a8\u09df\u09a8 \u099a\u09a8\u09cd\u09a6\u09cd\u09b0 \u09a6\u09a4\u09cd\u09a4 sort() \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf MongoDB \u09a1\u0995\u09c1\u09ae\u09c7\u09a8\u09cd\u099f \u09ac\u09be\u099b\u09be\u0987 \u0995\u09b0\u09a4\u09c7 \u09b9\u09b2\u09c7 \u0986\u09aa\u09a8\u09be\u0995\u09c7 sort() \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7\u0964 \u0995\u09cd\u09b7\u09c7\u09a4\u09cd\u09b0 \u09a4\u09be\u09b2\u09bf\u0995\u09be \u09a7\u09be\u09b0\u09a3\u0995\u09be\u09b0\u09c0 \u098f\u09ac\u0982 \u09a4\u09be\u09a6\u09c7\u09b0 \u09ac\u09be\u099b\u09be\u0987 \u0995\u09cd\u09b0\u09ae\u09c7\u09b0 \u09b8\u0999\u09cd\u0997\u09c7, sort() \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf \u09a1\u0995\u09c1\u09ae\u09c7\u09a8\u09cd\u099f \u0997\u09cd\u09b0\u09b9\u09a3 \u0995\u09b0\u09c7\u0964 \u09ac\u09be\u099b\u09be\u0987 \u09aa\u09cd\u09b0\u0995\u09cd\u09b0\u09bf\u09df\u09be \u0989\u09b2\u09cd\u09b2\u09c7\u0996 \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af 1 \u098f\u09ac\u0982 -1 \u09ac\u09cd\u09af\u09ac\u09b9\u09c3\u09a4 \u09b9\u09df\u0964 1 \u0995\u09cd\u09b0\u09ae \u098a\u09b0\u09cd\u09a7\u09cd\u09ac\u0997\u09be\u09ae\u09c0\u09a4\u09be\u09b0 \u099c\u09a8\u09cd\u09af \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be \u09b9\u09af\u09bc \u09af\u0996\u09a8\u2026","rel":"","context":"In &quot;Root&quot;","block_context":{"text":"Root","link":"http:\/\/bangla.sitestree.com\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/7003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7003"}],"version-history":[{"count":3,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/7003\/revisions"}],"predecessor-version":[{"id":7088,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/7003\/revisions\/7088"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7003"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}