How to copy one table of mongodb to another table of mongodb at different location location? -


i have 2 mongodb database,

1 in in local host

and 2nd in in other computer

here myinfo <= database name  customerdetails <= table name  let's see 1st : `localhost / myinfo / customerdetails` 

i want copy collection of customerdetails db @ :

let's 2nd : `192.168.1.10/ myinfo / customerdetails 

how can that? ` note: not want copy whole db , 1 table!

use method target host, in shell:

> use myinfo > db.clonedatabase("origin hostname/ or ip") 

Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -