Skip to content

The Rails Drop

find here about Ruby, Ruby On Rails, Linux etc…

Day: April 27, 2015

How to rename a database in Mongodb 2.6

Use the following commands:
I can only find copy and drop commands for doing this. Please comment here if you find a single command to do this.

> db.copyDatabase('old_db_name', 'new_db_name');
> use old_db_name;
> db.dropDatabase();
Author AbhilashPosted on April 27, 2015July 1, 2016Categories UncategorizedLeave a comment on How to rename a database in Mongodb 2.6

Trace here..

April 2015
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  
« Mar   Aug »

Recent Posts

  • Rails 6.1 introduce ‘compact_blank’
  • PostgreSQL commands to remember
  • Setup Nginx, SSL , Firewall | Moving micro-services into AWS EC2 instance – Part 4
  • Setup Ruby, ruby-build, rbenv-gemset | Conclusion – Moving micro-services into AWS EC2 instance – Part 3
  • Setup Zsh, NVM, Rbenv | Moving micro-services into AWS EC2 instance – Part 2

Archives

  • June 2022
  • May 2022
  • March 2022
  • December 2021
  • November 2021
  • July 2021
  • March 2021
  • October 2020
  • April 2020
  • March 2020
  • September 2019
  • July 2019
  • June 2019
  • May 2018
  • April 2018
  • September 2017
  • August 2017
  • June 2017
  • April 2017
  • June 2016
  • May 2016
  • March 2016
  • February 2016
  • September 2015
  • August 2015
  • April 2015
  • March 2015
  • September 2014
  • October 2013
  • September 2013
  • July 2013
  • April 2013
  • January 2013
  • December 2012
  • November 2012
  • August 2012
  • July 2012
  • April 2012
  • February 2012
  • January 2012
  • November 2011
  • October 2011
  • August 2011
  • June 2011
  • March 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010

Categories

  • Amazon
  • AWS
  • C
  • Centos
  • Configuration
  • CSS
  • database
  • Firewall
  • GNU/Linux
  • haml
  • HTML
  • Installation
  • Issues
  • java
  • Javascript
  • jQuery
  • Laravel
  • liferay
  • Linux OS
  • MAC
  • Metaprogramming
  • mongodb
  • Mysql
  • Netbeans
  • Nginx Server
  • NodeJS
  • OSX
  • PHP
  • plugin
  • PostgreSQL
  • Projects
  • Python
  • Rbenv
  • Ruby
  • Ruby gem
  • Ruby On Rails
  • RVM
  • Softwares
  • SSL
  • Sublime
  • Test cases
  • Ubuntu
  • UNIX
  • Website

Blogroll

  • Documentation
  • Plugins
  • Suggest Ideas
  • Support Forum
  • Themes
  • WordPress Blog
  • WordPress Planet
The Rails Drop Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • The Rails Drop
    • Join 46 other followers
    • Already have a WordPress.com account? Log in now.
    • The Rails Drop
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar