title: How to start mongodb console
body: <p>I started mongodb by the command</p>
  
  <pre><code>mongod --dbpath ./data/
  </code></pre>
  
  <p>My app is able to save and retrieve data from the mongodb with the above server but when I go to mongo console from other terinal tab using</p>
  
  <pre><code>$ mongo 
  MongoDB shell version: 2.6.0
  connecting to: test
  &gt; show collections
  &gt; 
  </code></pre>
  
  <p>it doesn't show any collections. Is the mongodb connecting to another database? How do I connect to my db</p>