Guest User

Untitled

a guest
Jan 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. I. shell interface
  2. 1. login host
  3. 2. run command below
  4. mongo
  5.  
  6. II. copyDatabase
  7. case1: copy local database to local
  8. 1. db.copyDatabase("from_database_name", "to_database_name", "localhost")
  9.  
  10. III. misc ops
  11. * show dbs
  12. show databases
  13.  
  14. * use (database_name)
  15. switch to (database_name) database.
  16.  
  17. * show collections
  18. show collection names that is table names in RDB
Add Comment
Please, Sign In to add comment