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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

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

ios - I get the error Property '...' not found on object of type '...' -