title: Location of the mongodb database on mac
body: <p>I am kind of new to mac as well as mongodb.</p>
  
  <p>I have a weird doubt, accessing the database created using mongodb on mac?</p>
  
  <p>I know, in windows there is a folder called c:\data\db, where my database files are stored.</p>
  
  <p>How and where in mac, the database is stored.</p>
  
  <p>I remember doing something like </p>
  
  <pre><code>sudo mkdir -p /data/db
  sudo chown `id -u` /data/db
  </code></pre>
  
  <p>to create such a folder on mac, but I didn't find any database file in this folder, though i created a database.</p>
  
  <p>Where are the database files saved on mac?</p>
  
  <p>Any help would be really appreciated. </p>