2017-05-09 5 views
1

데이터베이스 URL에서 원격 데이터베이스를 복제 : 에 https : // $ 사용자 이름 : $ USERNAME, $ 암호, $ REMOTE_USERNAME의 값이 무엇 [email protected]$REMOTE_USERNAME.Cloudant.com/$DATABASE_NAME는 Bluemix

를? enter image description here

enter image description here

현재 Cloudant 계정 :

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" 
      }, 
     } 
    ] 
} 

이 Bluemix에서 원격 데이터베이스를 복제의 예를주십시오. 로컬 데이터베이스에 원격 대상에서 복제 할 경우

답변

1

, 데이터베이스 URL이 될 것입니다 :

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

일예

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

여기에서 자세한 정보를 찾을 수 있습니다 : https://developer.ibm.com/clouddataservices/cloudant-replication/


참고 : 당신은 적어도 암호를 변경해야했다면 나는 당신이 당신의 실제 자격 증명을 게시하지 않았 겠지 .

+0

@Olivia : 한동안 사용해 보지 않았지만 클라우드 파운드리 CLI 플러그인 (https://github.com/ibmjstart/bluemix-cloudant-replicator)이 도움이 될 수 있습니다. . –

+0

고마워요! 크리스 눈. – Olivia

+0

Np. 이게 당신에게 올리비아를 위해 일한다면, 답을 받아 들여서 upvote도 좋을 것입니다 :) –