title: How do I specify a relative db path for storing mongodb's data?
body: <p>I'd like to use a relative path for mongodb, so that each user has a separate data directory when running mongo.</p>
  
  <p>I've tried setting </p>
  
  <pre><code>dbpath = ~/mongodb_data
  </code></pre>
  
  <p>in my config file, but for some reason that doesn't seem to work - I'm getting: </p>
  
  <pre><code>ERROR: dbpath (~/mongodb_data) does not exist.
  </code></pre>
  
  <p>At first I thought it might be a permissions error, but I'm running mongod under a user that has rw to ~/mongodb_data.</p>
  
  <p>Is what I'm trying to do feasible, and, if so, how do I get to doing it?</p>