How to move mongoDB database from from one server to another server using Ubuntu -


i need 1 help. need move mongodb database 1 server in ubuntu. suppose have database named video in 10.*.*.* , need move db lets 100.*.*.*. found below command.

db.copydatabase(fromdb, todb, fromhost, username, password, mechanism) 

is above command able task. here can not understand should value assign mechanism. please me.

that command should accomplish task. mechanism value optional. method copydatabase defaults scram-sha-1 if wire protocol version maxwireversion greater or equal 3 (i.e. mongodb versions 3.0 or greater). should need specify mechanism mongodb-cr if need authenticate version 2.6.x fromhost version 3.0 instance or greater. reference: https://docs.mongodb.com/manual/reference/method/db.copydatabase/#definition


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -