title: Mongodump doesn't work as expected
body: <p>I am trying to host my database online and based on what I have found online, I need to use <code>mongodump</code> to export my database first.</p>
  
  <p>The way to use <code>mongodump</code> if am not wrong is:</p>
  
  <pre><code>mongodump -d &lt;db-name&gt; -o &lt;directory&gt;
  </code></pre>
  
  <p>when I use the above command, I get the following error in the terminal:</p>
  
  <pre><code>Failed: error connecting to db server: no reachable servers
  </code></pre>
  
  <p>I tried to add <code>--host=127.0.0.1</code> after <code>mongodump</code> as follows:</p>
  
  <pre><code>mongodump --host=127.0.0.1 -d &lt;db-name&gt; -o &lt;directory&gt;
  </code></pre>
  
  <p>But I still get the same result. What am I doing wrong here?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I managed to overcome the error by starting the MongoDB service with the following command:</p>
  
  <pre><code>brew services start mongodb
  </code></pre>
  
  <p>Now when I run <code>mongodump</code>, it seems to be working but I can't find it when I navigate to the directory where it supposed to be located!</p>
  
  <p><strong>NOTE:</strong> I am using Meteor technology, and I am accessing my database with <code>meteor mongo</code> command</p>