Changes
/* Creation de la base FFH */
</pre>
'''Creation de la Collection Membre''' <pre> >db.membre.insert(M1) WriteResult({ "nInserted" : 1 }) db.membre.insert(M2) WriteResult({ "nInserted" : 1 })</pre>
'''Verification de l'insertion.''' <pre>> db.membre.find() { "''id" : ObjectId("53a07eba52a032beb132c6ba"), "Member_pseudo" : "Pirboazo", "Member_num" : 123001, "Langue" : "fr" } { "''id" : ObjectId("53a07ed752a032beb132c6bb"), "Member_pseudo" : "Yv", "Member_num" : 3001, "Langue" : "fr" }
** Nota ** <pre>> show collections membre system.indexes</pre> On Quitte et on se reconnecte > exit bye pboizot@dbi-ntbk02:/u01/projets/mongodb/doc$ /u01/projets/mongodb/bin/mongo MongoDB shell version: 2.6.2 connecting to: test > show dbs FFH 0.078GB admin (empty) local 0.078GB test (empty)
Constat la base FFH existe...
'''Drop database'''<br />
> use FFH switched to db FFH > db.dropDatabase(); { "dropped" : "FFH", "ok" : 1 } > exit bye pboizot@dbi-ntbk02:/u01/projets/mongodb/doc$ /u01/projets/mongodb/bin/mongo MongoDB shell version: 2.6.2 connecting to: test > show dbs admin (empty) local 0.078GB test (empty) > <blockquote>Written with [https://stackedit.io/ StackEdit].</blockquote>