title: Upgraded mongo to 2.6 using home-brew and now can't connect
body: <p>Running OSX 10.9.2, I just ran <code>brew upgrade mongo</code> which upgraded my <code>mongo</code> to version 2.6</p>
  
  <p>As per the instructions I've run</p>
  
  <pre><code>launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
  launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
  </code></pre>
  
  <p>But now when I run <code>mongo</code> it says</p>
  
  <pre><code>MongoDB shell version: 2.6.0
  connecting to: test
  2014-05-05T10:07:22.769+1000 warning: Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
  2014-05-05T10:07:22.770+1000 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
  exception: connect failed
  </code></pre>
  
  <h3>Things I've tried:</h3>
  
  <ol>
  <li>I've seen this covered on other SX questions and people have suggested creating a <code>/data/db</code> folder but this wasn't needed previously and I don't want to lose the data from my old instance of <code>mongo</code>. Regardless, I tried it, and <code>chown</code>ed it to allow read/write from my user account, but that made no difference. (FYI my data lives in <code>/usr/local/var/mongodb/</code> which is typical I believe for OSX.)</li>
  <li>A lot of the other questions also assume Linux rather than Mac, or they wade off into <code>PHP</code> land which is not relevant to me.</li>
  <li>I've also tried rebooting my Mac.</li>
  </ol>