Please follow this steps:
use config
db.collections.find()
use admin
db.runCommand(
)
db.runCommand({shardCollection: "ching.stew", key: {"_id":1}})
use ching
db.dropDatabase()
use admin
db.runCommand(
)
db.runCommand({shardCollection: "ching.stew", key: {"_id":1}})
use config
db.collections.find()
use ching
show collections
- depends on
-
SERVER-1849 Recreating recently dropped collection with different sharding parameters is not working
- Closed
-
SERVER-1836 printSharding status showing "<ns> chunks:" for collection that was dropped
- Closed