title: Creating a database in Mongo: can't connect, get "connect failed"
body: <p>I want to create a new database in Mongo. However, I'm having trouble connecting: </p>
  
  <pre><code>:~$ mongo
  MongoDB shell version: 1.6.5
  connecting to: test
  Tue Dec 21 18:16:25 Error: couldn't connect to server 127.0.0.1 (anon):1154
  exception: connect failed
  </code></pre>
  
  <p>How can I connect to mongo in order to create a new database? Alternatively, can I create a new database from the command line?</p>
  
  <p>Slightly surprisingly, the <a href="http://www.mongodb.org/display/DOCS/Databases">Mongo docs</a> don't seem to cover how to create a database.</p>
  
  <p>Thanks.</p>