Timo Geusch from The Lone C++ Coder's Blog
MongoDB has a handy command to rename a collection, db.collectionName.renameCollection(). There is currently no equivalent to rename a database. Now if we accept that from time to time, one positively, absolutely just has to rename a database in MongoDB, well, there are a couple of options. Unfortunately they aren’t quite as straight forward as single […]
The post How to rename a database in MongoDB appeared first on The Lone C++ Coder's Blog.