<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Mongo on Laïla Atrmouh</title>
    <link>/fr/tags/mongo/</link>
    <description>Recent content in Mongo on Laïla Atrmouh</description>
    <generator>Hugo</generator>
    <language>fr</language>
    <copyright>&lt;a href=&#34;https://creativecommons.org/licenses/by-nc/4.0/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CC BY-NC 4.0&lt;/a&gt;</copyright>
    <lastBuildDate>Thu, 10 Nov 2016 09:01:20 +0000</lastBuildDate>
    <atom:link href="/fr/tags/mongo/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Débuter avec Mongo DB</title>
      <link>/fr/posts/2016/11/d%C3%A9buter-avec-mongo-db/</link>
      <pubDate>Thu, 10 Nov 2016 09:01:20 +0000</pubDate>
      <guid>/fr/posts/2016/11/d%C3%A9buter-avec-mongo-db/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;👴 &lt;em&gt;Attention&lt;/em&gt; Cet article a quelques années et n&amp;rsquo;est peut-être plus à jour !&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;démarrer-mongo&#34;&gt;Démarrer Mongo&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;mongod&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;démarrer-mongo-sans-les-journaux&#34;&gt;Démarrer Mongo sans les journaux&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;mongod --nojournal&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Peut être pratique si vous n’avez pas beaucoup d’espace sur votre ordi.&lt;/p&gt;&#xA;&lt;h2 id=&#34;se-connecter-en-shell-à-mongo&#34;&gt;Se connecter en Shell à Mongo&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;mongo&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt; &lt;/p&gt;&#xA;&lt;h2 id=&#34;créer-unebase-de-données&#34;&gt;Créer une base de données&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;use &amp;lt;nom_de_la_base_de_données&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Il faut y enregistrer au moins un document pour que la base de données soit vraiment sauvegardée.&lt;/p&gt;&#xA;&lt;h2 id=&#34;créer-un-utilisateur&#34;&gt;Créer un utilisateur&lt;/h2&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-db.createUser(&#34; data-lang=&#34;db.createUser(&#34;&gt;{&#xA;  user: &amp;#34;fashion&amp;#34;,&#xA;  pwd: &amp;#34;fashion&amp;#34;,&#xA;  roles: [ &amp;#34;readWrite&amp;#34;, &amp;#34;dbAdmin&amp;#34; ]&#xA;});&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;voir-le-contenu-drsquoune-collection&#34;&gt;Voir le contenu d’une collection&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;db.nom_collection.find();&lt;/code&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
