title: Database with same name created in mongodb?
body: <p>I found that database with a same that already exists can be created, thus databases with the same names causes problems when I need to specify which databases I want to use.</p>
  
  <p>Here is how it happens:</p>
  
  <ol>
  <li>I already have a database, with name "test1",which only stores collections with documents.</li>
  <li>Then, I use it to store files using GridFS so it contains binary files.(Actually, I think this could be the cause, but I have no idea why)</li>
  <li>And now problem happens. When I try to access "test1" using command like <code>use test1</code>. An empty database with the same name "test1" will be created. </li>
  </ol>
  
  <p>Like what <code>show dbs</code> demonstrates:</p>
  
  <pre><code>test1   empty
  test1   0.0625GB
  </code></pre>
  
  <p>I am using mongodb 2.0.5</p>
  
  <p>Any hint on why this happens, since common sense will show that db with the same name cannot coexist? And any solution?</p>