Changes
/* Creation de la base FFH */
=== Creation de la base FFH ===
<blockquotepre>use FFH switched to db FFH db FFH</blockquotepre>
'''Initialisation de données'''
<pre> M1 = { Member_pseudo : "Pirboazo", Member_num : 123001, Langue:'fr' }
{ "Member_pseudo" : "Pirboazo", "Member_num" : 123001, "Langue" : "fr" }
M2 = { Member_pseudo : "Yv", Member_num : 3001, Langue:'fr' } { "Member_pseudo" : "Yv", "Member_num" : 3001, "Langue" : "fr" }
</pre>
'''Creation de la Collection Membre''' >db.membre.insert(M1) WriteResult({ "nInserted" : 1 }) db.membre.insert(M2) WriteResult({ "nInserted" : 1 })
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... ><pre>use FFH</pre>
<blockquote>show collections membre system.indexes