How do you rename a MongoDB database




Even I did not find any command to rename the database directly.


To rename the database please track the following steps.

1- Copy your old database to the new renamed database.

    db.copyDatabase("db_old","db_new_renamed","localhost")

2- Select old database using USE key.

    use db_old

3-  Drop Old Database

     db.dropDatabase();

NUnit : Introduction

There are several unit test tools in the market, but one of them is NUnit, the most popular tool for doing unit testing. So in this tutorial...