2017-05-09 3 views
1

Datenbank URL: https: // username $: [email protected]$REMOTE_USERNAME.Cloudant.com/$DATABASE_NAMEReplizieren eine entfernte Datenbank von Bluemix

Was ist der Wert von $ NUTZERNAME ist, $ password, $ REMOTE_USERNAME? enter image description here

enter image description here

Die aktuelle Cloudant Konto:

VCAP_SERVICES 
{ 
    "cloudantNoSQLDB": [ 
     { 
      "credentials": { 
       "username": "c39cexxx-bluemix", 
       "password": "xxxxxxx", 
       "host": "c39cexxx-bluemix.cloudant.com", 
       "port": 443, 
       "url": "https://c39cexxx-bluemix:[email protected]" 
      }, 
     } 
    ] 
} 


The other Cloudant accounts in a database 
VCAP_SERVICES 
{ 
    "cloudantNoSQLDB": [ 
     { 
      "credentials": { 
       "username": "f39c4xxx-bluemix", 
       "password": "xxxxxxx", 
       "host": "f39c4xxx-bluemix.cloudant.com", 
       "port": 443, 
       "url": "https://f39c4xxx-bluemix:[email protected]  bluemix.cloudant.com" 
      }, 
     } 
    ] 
} 

Bitte geben ein Beispiel für eine entfernte Datenbank von Bluemix replizieren.

Antwort

1

Wenn Sie von einem entfernten Ziel in einer lokalen Datenbank replizieren wollen, wird Ihre Datenbank-URL sein:

https://$remote_username:[email protected]$remote_username.cloudant.com/$remote_database 

Z.B.

https://f39c45g0-bluemix:[email protected]/the_remote_database 

können Sie weitere Informationen finden Sie hier: https://developer.ibm.com/clouddataservices/cloudant-replication/


HINWEIS: Ich nehme an, Sie nicht Ihre tatsächlichen Anmeldeinformationen veröffentlichen, wenn Sie getan haben sollten Sie zumindest Ihre Passwörter ändern .

+0

@Olivia: Haben Sie das seit einiger Zeit nicht mehr versucht, aber es gibt auch ein Cloud-Foundry-CLI-Plugin (https://github.com/ibmjstart/bluemix-cloudant-replicator), das für Sie nützlich sein könnte . –

+0

Vielen Dank! Chris Schnee. – Olivia

+0

Nr. Wenn das für dich Olivia funktioniert hat, akzeptiere bitte die Antwort und eine Aufwertung wäre auch nett :) –

Verwandte Themen