title: Can not create shards: sharding not enabled for db
body: <p>I am trying shard collection based on a sharding key:
  Looking into help I see that I can do this with 
  <code>sh.shardCollection("database.collection", myKey)</code></p>
  
  <p>But when I am doing this I receive the message</p>
  
  <pre><code>{ "ok" : 0, "errmsg" : "sharding not enabled for db" }
  </code></pre>
  
  <p>I started <code>mongod --configsvr</code> and also <code>mongod --shardsvr</code> , so I thought that I already enabled sharding. Any idea what should I do?</p>