Database 'm103' exists in another m103-repl-2

Hi
Chapter 3: Sharding Lab - Shard a Collection

Any suggestion for that error?

MongoDB Enterprise mongos> sh.addShard(“m103-repl-2/192.168.103.100:27004”)
{
“ok” : 0,
“errmsg” : “can’t add shard ‘m103-repl-2/192.168.103.100:27004’ because a local database ‘m103’ exists in another m103-repl-2”,
“code” : 96,
“codeName” : “OperationFailed”,
“operationTime” : Timestamp(1559574111, 1),
“$clusterTime” : {
“clusterTime” : Timestamp(1559574111, 1),
“signature” : {
“hash” : BinData(0,“PO6WacVMiAdBgpiNjb5umH3vM88=”),
“keyId” : NumberLong(“6684910515103203355”)
}
}
}

this means that you have a database named m103 on both your cluster and the node you’re trying to add.
dropping this DB may help

Hi

How can i drop it?

To delete or drop a database from MongoDB, follow the below steps :
Select the database you want to delete with the help of USE command. Following is the syntax of USE command : use <database_name>
Drop the database with the help of db.dropDatabase() command.