Changes

Jump to: navigation, search

Dbms workshop

695 bytes added, 18:45, 8 July 2014
/* Restore d'une base mongodb */
<pre>
./mongorestore /u01/projets/mongodb/backup/FFH
connected to: 127.0.0.1
2014-07-08T20:43:32.576+0200 /u01/projets/mongodb/backup/FFH/membre.bson
2014-07-08T20:43:32.576+0200 going into namespace [FFH.membre]
2 objects found
2014-07-08T20:43:32.577+0200 Creating index: { key: { _id: 1 }, name: "_id_", ns: "FFH.membre" }
</pre>
 
On verifie le chargement.
<pre>
/u01/projets/mongodb/bin$ ./mongo FFH
MongoDB shell version: 2.6.2
connecting to: FFH
> show collections
membre
system.indexes
 
> db.membre.find()
{ "_id" : ObjectId("53bc2d51bd84677f027bbbe6"), "Member_pseudo" : "Pirboazo", "Member_num" : 123001, "Langue" : "fr" }
{ "_id" : ObjectId("53bc2d54bd84677f027bbbe7"), "Member_pseudo" : "Yv", "Member_num" : 3001, "Langue" : "fr" }
>
</pre>
154
edits